Part Number Hot Search : 
22152 MUN2130 P4KE91 29LV8 5KE440A 100LVE 3101A SMBJ90
Product Description
Full Text Search
 

To Download DS21352 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 137 120501 features  complete ds1/isdn?pri/j1 transceiver functionality  long and short haul liu  crystal?less jitter attenuator  generates dsx?1 and csu line build-outs  hdlc controller with 64-byte buffers configurable for fdl or ds0 operation  dual two?frame elastic store slip buffers that can connect to asynchronous backplanes up to 8.192mhz  8.192mhz clock output locked to rclk  interleaving pcm bus operation  per-channel loopback and idle code insertion  8-bit parallel control port muxed or nonmuxed buses (intel or motorola)  programmable output clocks for fractional t1  fully independent transmit and receive functionality  generates/detects in-band loop codes from 1 to 8 bits in length including csu loop codes  ieee 1149.1 jtag-boundary scan  pin compatible with ds2152/54/354/554 scts  100-pin lqfp package (14 mm x 14 mm) 3.3v (DS21352) or 5v (ds21552) supply; low power cmos ordering information DS21352l (0  c to +70  c) DS21352ln (-40  c to +85  c) ds21552l (0  c to +70  c) ds21552ln (-40  c to +85  c) description the DS21352/552 t1 single-chip transcei ver contains all of the necessary functions for connection to t1 lines whether they are ds1 long haul or dsx?1 s hort haul. the clock recove ry circuitry automatically adjusts to t1 lines from 0 feet to over 6000 feet in length. the device can generate both dsx?1 line build outs as well as csu line build-outs of -7.5db , -15db, and -22.5db. the onboard jitter attenuator (selectable to either 32 bits or 128 bits) can be place d in either the transmit or receive data paths. the framer locates the frame and multifra me boundaries and monitors the data stream for alarms. it is also used for extracting and inserting robbed-bit signaling data and fdl data. the device contains a set of internal registers which the user can access and control the operation of the unit. quick access via the parallel control port allows a single controller to handle many t1 lines. the device fully meets all of the latest t1 specifications including ans i t1.403-1995, ansi t1.231-1993, at&t tr 62411 (12?90), at&t tr54016, and itu g.703, g.704, g.706, g.823, and i.431. 1 100 pin assignment 3.3v DS21352 and 5v ds21552 t1 single-chip transceivers www.maxim-ic.com DS21352 ds21552
DS21352/ds21552 2 of 137 table of contents 1. list of figures .............................................................................................................. ...........5 2. list of tables ............................................................................................................... ............6 3. introduction................................................................................................................. ...........7 3.1 functional description..............................................................................................8 3.2 document revision history....................................................................................10 4. pin description .............................................................................................................. ........11 4.1 pin function description..........................................................................................17 4.1.1 transmit side pins ........................................................................................................ 17 4.1.2 receive side pins ......................................................................................................... .20 4.1.3 parallel control port pins............................................................................................23 4.1.4 jtag test access port pins .........................................................................................25 4.1.5 interleave bus operation pins......................................................................................25 4.1.6 line interface pins ....................................................................................................... .26 4.1.7 supply pins............................................................................................................... .....27 5. parallel port................................................................................................................ ........28 5.1 register map ................................................................................................................ ...28 6. control, id, and test registers .................................................................................32 6.1 power-up sequence......................................................................................................32 6.2 device id ................................................................................................................... .........32 6.3 payload loopback.......................................................................................................37 6.4 framer loopback .........................................................................................................38 6.5 pulse density enforcer ............................................................................................40 6.6 remote loopback .........................................................................................................44 7. status and informat ion registers..........................................................................45 8. error count registers ....................................................................................................52 8.1 line code violation count register (lcvcr) ................................................53 8.2 path code violation count register (pcvcr) ...............................................54 8.3 multiframes out of sync count register (moscr)....................................55 9. dso monitoring function...............................................................................................56
DS21352/ds21552 3 of 137 10. signaling operation......................................................................................................... .58 10.1 processor-based signaling ....................................................................................58 10.2 hardward-based signaling ...................................................................................60 10.2.1 receive side............................................................................................................ .....60 10.2.2 transmit side........................................................................................................... ....61 11. per-channel code (idle) generation ......................................................................61 11.1 transmit side code generation ...........................................................................62 11.1.1 fixed per-channel idle code insertion ......................................................................62 11.1.2 unique per-channel idle code insertion....................................................................63 11.2 receive side code generation...............................................................................63 11.2.1 fixed per-channel idle code insertion ......................................................................64 11.2.3 unique per-channel idle code insertion....................................................................64 12. per-channel loopback.....................................................................................................65 13. clock blocking registers ............................................................................................65 14. elastic stores operation ..............................................................................................66 14.1 receive side ............................................................................................................... ......66 14.2 transmit side.............................................................................................................. ....67 14.3 elastic stores initialization ................................................................................67 14.4 minimum delay mode..................................................................................................67 15. hdlc controller............................................................................................................. ....68 15.1 hdlc for ds0s .............................................................................................................. ....68 15.1.1 receive an hdlc message .........................................................................................68 15.1.2 transmit an hdlc message .......................................................................................68 15.2 fdl/fs extraction and insertion .........................................................................69 15.3 hdlc and boc controller for the fdl................................................................69 15.3.1 general overview........................................................................................................ 69 15.3.2 status register for the hdlc......................................................................................70 15.3.3 basic operation details ..............................................................................................71 15.3.4 hdlc/boc register description ...............................................................................72 15.4 legacy fdl support.....................................................................................................82 15.4.1 over view................................................................................................................ ......82 15.4.2 receive section ......................................................................................................... ...82 15.4.3 transmit section........................................................................................................ ..84 15.5 d4/slc-96 operation......................................................................................................84
DS21352/ds21552 4 of 137 16. line interface function .................................................................................................85 16.1 receive clock and data recovery ....................................................................85 16.2 transmit wave shaping and line driving.......................................................86 16.3 jitter attnuator..........................................................................................................8 6 16.4 protected interfaces................................................................................................92 16.5 receive monitor mode...............................................................................................95 17. programmable in-band loop code generation and detection ............96 18. transmit transparency ..................................................................................................99 19. jtag-boundary scan architec ture and test access port .......................99 19.1 description ................................................................................................................ ......99 19.2 tap controller state machine ..........................................................................101 19.3 instruction register ...............................................................................................103 19.4 test registers ............................................................................................................. .105 20. interleaved pcm bus operation ..............................................................................109 20.1 channel interleave .................................................................................................111 20.2 frame interleave.......................................................................................................111 21. functional timing diagrams .....................................................................................111 22. receive and transmit dat a flow diagrams.....................................................123 23. operating parameters...................................................................................................125 24. ac timing parameters and diagrams....................................................................126 24.1 multiplexed bus ac characteristics .............................................................126 24.2 non-multiplexed bus ac characteristics ...................................................129 24.3 receive side ac characteristics .......................................................................132 24.4 transmit ac characteristics..............................................................................136 25. mechanical descripttion ............................................................................................139
DS21352/ds21552 5 of 137 1. list of figures figure 3-1 sct block diagram.................................................................................................. .......9 figure 16-1 external analog conne ctions ..........................................................................87 figure 16-2 optional crystal connections ..........................................................................88 figure 16-3 transmit waveform templane............................................................................89 figure 16-4 jitter tolerance .................................................................................................. .......91 figure 16-5 jitter attenuation ................................................................................................ ....91 figure 16-6 protected interface example for the ds21552...........................................93 figure 16-7 protected interface example for te DS21352..............................................94 figure 16-8 typical monitor port application....................................................................95 figure 19-1 jtag functional block diagram......................................................................100 figure 19-2 tap controller state diagram ........................................................................103 figure 20-1 ibo basic configuration using 4 scts ............................................................110 figure 21-1 receive side d4 timing............................................................................................ .111 figure 21-2 receive side esf timing........................................................................................... 112 figure 21-3 receive side boundary timing (with elastic store disabled)..............................113 figure 21-4 receive side 1.544 mhz boundary timing (with elastic store enabled) ...........113 figure 21-5 receive side 2.048 mhz boundary timing (with elastic store enabled) ...........114 figure 21-6 receive side interleave bus operation, byte mode ..............................115 figure 21-7 receive side interleave bus operation, frame mode ...........................116 figure 21-8 transmit side d4 timing .........................................................................................11 7 figure 21-9 transmit side esf timing .......................................................................................118 figure 21-10 transmit side boundary timi ng (with elastic store disabled) ........................119 figure 21-11 transmit side 1.544 mhz boundary timing (with elastic store enabled)......119 figure 21-12 transmit side 2.048 mhz boundary timing (with elastic store enabled)......120 figure 21-13 transmit side interleave bus operation, byte mode.........................121 figure 21-14 transmit side interleave bus operation, frame mode .....................122 figure 22-1 receive data flow ................................................................................................. ..123 figure 22-2 transmit data flow................................................................................................ 124 figure 24-1 intel bus read timing (bts=0 / mux=1) .............................................................127 figure 24-2 intel bus write timing (bts=0 / mux=1) ...........................................................127 figure 24-3 motorola bus timing (bts=1 / mux=1)..............................................................128 figure 24-4 intel bus read timing (bts=0 / mux=0) ..............................................................130 figure 24-5 intel bus read timing (bts=0 / mux=0) .............................................................130 figure 24-6 motorola bus read timing (bts=1 / mux=0)..................................................131 figure 24-7 motorola bus read timing (bts=1 / mux=0)..................................................131 figure 24-8 receive side timing ............................................................................................... ...133 figure 24-9 receive side timing, elastic store enabled...............................................134 figure 24-10 receive line interface timing .........................................................................135 figure 24-11 transmit side timing............................................................................................. 137 figure 24-12 transmit side timing, elastic store enabled .........................................138 figure 24-13 transmit line interface timing......................................................................138
DS21352/ds21552 6 of 137 2. list of tables table 4-1 pin description sorted by pin number................................................................11 table 4-2 pin description sorted by pin symbol ................................................................14 table 5-1 register map sorted by address...........................................................................29 table 6-1 device id bit map ................................................................................................... ..........33 table 6-2 output pin test modes ............................................................................................... ..36 table 7-1 receive t1 level indication .....................................................................................47 table 7-2 alarm criteria ...................................................................................................... ..........49 table 8-1 line code violat ion counting arrangements ..............................................53 table 8-2 path code violation counting arrangements.............................................54 table 8-3 multiframes out of sync counting arrangments .....................................55 table 14-1 elastic store delay after initialization......................................................67 table 14-2 minimum delay mode configuration................................................................67 table 15-1 transmit hdlc configuration...............................................................................68 table 15-2 hdlc/boc controller registers ..........................................................................70 table 16-1 line build out select in licr .................................................................................86 table16-2 transmit transformer selection .......................................................................87 table 16-3 transformer specifications..................................................................................88 table 16-4 pulse template corner points..............................................................................90 table 16-5 receive monitor mode gain....................................................................................95 table 17-1 transmit code length............................................................................................... 97 table 17-2 receive code length ................................................................................................ ..97 table 19-1 instruction codes for ieee 1149.1 architecture .......................................104 table 19-2 id code structure .................................................................................................. ...105 table 19-3 device id codes .................................................................................................... ........105 table 19-4 boundary scan control bits ..............................................................................106 table 20-1 master device bus select.....................................................................................110
DS21352/ds21552 7 of 137 3. introduction the DS21352/552 are 3.3v/5v superset versions of the popular ds2152 t1 single-chip transceiver offering the new features listed below. all of the or iginal features of the ds2152 have been retained and software created for the original devi ces is transferable into the DS21352/552. new features (after the ds2152)  interleaving pcm bus operation  integral hdlc controller with 64-byte buffers configurable for fdl or ds0 operation  ieee 1149.1 jtag-boundary scan architecture  3.3v (DS21352 only) supply features  option for non?multiplexed bus operation  crystal?less jitter attenuation  3.3v i/o on all scts  additional hardware signaling capability including: ? receive signaling reinsertion to a backplane multiframe sync ? availability of signaling in a separate pcm data stream ? signaling freezing ? interrupt generated on change of signaling data  ability to calculate and check crc6 according to the japanese standard  ability to pass the f?bit position through the el astic stores in the 2.048 mhz backplane mode  programmable in?band loop code generator and detector  per channel loopback and idle code insertion  rcl, rlos, rra, and rais alarms now interrupt on change of state  8.192 mhz clock output synthesized to rclk  hdlc controller can be configured for fdl  addition of hardware pins to indicate carrier loss & signaling freeze  line interface function can be completely decoupled from the framer/formatter to allow: ? interface to optical, hdsl, and other nrz interfaces ? be able to ?tap? the transmit and receive bipolar data streams for monitoring purposes ? be able corrupt data and insert framing errors, crc errors, etc.  transmit and receive elastic stores now have independent backplane clocks
DS21352/ds21552 8 of 137 3.1 functional description the analog ami/b8zs waveform off of the t1 lin e is transformer coupled into the rring and rtip pins of the DS21352/552. the device recovers clock and data from the analog signal and passes it through the jitter attenuation mux to the receive side framer where the dig ital serial stream is analyzed to locate the framing/multi-frame pattern. the DS21352/552 c ontains an active filter that reconstructs the analog received signal for the nonlinear losses that o ccur in transmission. the device has a usable receive sensitivity of 0 db to ?36 db, which allows the devi ce to operate on cables up to 6000 feet in length. the receive side framer locates d4 (slc?96) or es f multiframe boundaries as well as detects incoming alarms including, carrier loss, loss of synchroniza tion, blue (ais) and yellow alarms. if needed, the receive side elastic store can be enabled in order to absorb the phase and frequency differences between the recovered t1 data stream and an asynchronous backplane clock which is provided at the rsysclk input. the clock applied at the rsysclk input can be either a 2.048 mhz clock or a 1.544 mhz clock. the rsysclk can be a bursty clock with speeds up to 8.192 mhz. the transmit side of the DS21352/552 is totally inde pendent from the receive side in both the clock requirements and characteristics. data off of a backplane can be passed through a transmit side elastic store if necessary. the transmit formatter will provide the necessary frame/multiframe data overhead for t1 transmission. once the data stream has been pr epared for transmission, it is sent via the jitter attenuation mux to the waveshapin g and line driver functions. the DS21352/552 will drive the t1 line from the ttip and tring pins via a coupling transf ormer. the line driver can handle both long haul (csu) and short haul (dsx?1) lines. reader?s note: this data sheet assumes a particular nomen clature of the t1 operating environment. in each 125  s frame, there are 24 eight?bit channels plus a framing bit. it is assumed that the framing bit is sent first followed by channel 1. each channel is ma de up of eight bits, which are numbered, 1 to 8. bit number 1 is the msb and is transmitted first. bit number 8 is the lsb and is transmitted last. the term ?locked? is used to refer to two clock signals th at are phase or frequency locked or derived from a common clock (i.e., a 1.544 mhz clock may be locked to a 2.048mhz clock if they share the same 8 khz component). throughout this data sheet, the following abbreviations will be used: b8zs bipolar with 8 zero substitution boc bit oriented code crc cyclical redundancy check d4 superframe (12 frames per multiframe) multiframe structure esf extended superframe (24 frames per multiframe) multiframe structure fdl facility data link fps framing pattern sequence in esf fs signaling framing pattern in d4 ft terminal framing pattern in d4 hdlc high level data link control mf multiframe slc?96 subscriber loop carrier ? 96 channels (slc?96 is an at&t registered trademark)
DS21352/ds21552 9 of 137 figure 3-1 sct block diagram receive side framer transmit side formatter elastic store tsync tclk tchclk tser tchblk rchclk rchblk rmsync tssync tsysclk rser rsysclk rsync rfsync tlink tlclk timing control elastic store sync control timing control rlos/lotc signaling buffer hardware signaling insertion tsig rsigf rcl local loopback tring ttip jitter attenuator either transmit or receive path receive line i/f clock / data recovery rring rtip remote loopback vco / pll mclk 8xclk 8mclk 8.192mhz clock synthesizer 24.7mhz 12.352 mhz xtald rclk rposo rnego rnegi rposi tposi tnegi tnego tposo teso tdata rclko rclki rdata tclki tclko liuc liuc parallel & test control port (routed to all blocks) d0 to d7 / ad0 to ad7 bts int* wr*(r/w*) rd*(ds*) cs* test ale(as) / a7 a0 to a6 mux 8 7 interleave bus ci rsysclk interleave bus mux mux t r a n s m i t l i n e i / f data clock sync framer loopback payload loopback hdlc/boc controller fdl / ds0 lotc mux hdlc/boc controller fdl / ds0 sync clock data co jtag port j r s t jtms jtclk jtdi jtdo rlink rlclk rsig fdl
DS21352/ds21552 10 of 137 3.2 document revision history revision notes 12-10-98 initial release 12-18-98 add liuodo (liu open drain output) to ccr7.0 add cdig (customer disconnect indication generator) to ccr7.1 add liusi (line interface unit synchronization interface) to ccr7.2 correct ibo register bit functions order add bit level description to ccr3.6 1-4-99 delete ? the elastic stores can be forced to a known depth via the el astic store reset bit (ccr3.6). toggling the ccr3.6 bit forces the read and write point ers into opposite frames ? from section 12.0 1-18-99 add receive ibo operation pcm timing diagram 1-18-99 correct device id register bit definitions 1-28-99 correct tsysclk and rsysclk ac timing and add 4.096 mhz and 8.192 mhz ac timing 2-2-99 correct definition and label or tudr bit in tprm register 2-11-99 correct format of register definitions in body of data sheet 4-1-99 add receive monitor mode section 4-15-99 add section on protected interfaces 5-7-99 correct fms pin # and description in jtag section 5-17-99 correct name of status registers in section 15.3.2 5-19-99 correct definition of rir3.4 7-27-99 correct receive monitor mode section 8-16-99 remove ?preliminary? notice from data sheet
DS21352/ds21552 11 of 137 4. pin description table 4-1 pin description sorted by pin number pin symbol type description 1 rchblk o receive channel block 2 jtms i ieee 1149.1 test mode select 3 8mclk o 8.192 mhz clock 4 jtclk i ieee 1149.1 test clock signal 5 jtrst i ieee 1149.1 test reset 6 rcl o receive carrier loss 7 jtdi i ieee 1149.1 test data input 8 nc ? no connect 9 nc ? no connect 10 jtdo o ieee 1149.1 test data output 11 bts i bus type select 12 liuc i line interface connect 13 8xclk o eight times clock 14 test i test 15 nc ? no connect 16 rtip i receive analog tip input 17 rring i receive analog ring input 18 rvdd ? receive analog positive supply 19 rvss ? receive analog signal ground 20 rvss ? receive analog signal ground 21 mclk i master clock input 22 xtald o quartz crystal driver 23 nc ? no connect 24 rvss ? receive analog signal ground 25 int* o interrupt 26 nc ? no connect 27 nc ? no connect 28 nc ? no connect 29 ttip o transmit analog tip output 30 tvss ? transmit analog signal ground 31 tvdd ? transmit analog positive supply 32 tring o transmit analog ring output 33 tchblk o transmit channel block 34 tlclk o transmit link clock 35 tlink i transmit link data 36 ci i carry in 37 tsync i/o transmit sync 38 tposi i transmit positive data input 39 tnegi i transmit negative data input 40 tclki i transmit clock input 41 tclko o transmit clock output 42 tnego o transmit negative data output 43 tposo o transmit positive data output table 4-1 pin description sorted by pin number (cont.) pin symbol type description 44 dvdd ? digital positive supply 45 dvss ? digital signal ground 46 tclk i transmit clock 47 tser i transmit serial data 48 tsig i transmit signaling input 49 teso o transmit elastic store output
DS21352/ds21552 12 of 137 50 tdata i transmit data 51 tsysclk i transmit system clock 52 tssync i transmit system sync 53 tchclk o transmit channel clock 54 co o carry out 55 mux i bus operation 56 d0/ad0 i/o data bus bit0/ address/data bus bit 0 57 d1/ad1 i/o data bus bit1/ address/data bus bit 1 58 d2/ad2 i/o data bus bit 2/address/data bus 2 59 d3/ad3 i/o data bus bit 3/address/data bus bit 3 60 dvss ? digital signal ground 61 dvdd - digital positive supply 62 d4/ad4 i/o data bus bit4/address/data bus bit 4 63 d5/ad5 i/o data bus bit 5/address/data bus bit 5 64 d6/ad6 i/o data bus bit 6/address/data bus bit 6 65 d7/ad7 i/o data bus bit 7/address/data bus bit 7 66 a0 i address bus bit 0 67 a1 i address bus bit 1 68 a2 i address bus bit 2 69 a3 i address bus bit 3 70 a4 i address bus bit 4 71 a5 i address bus bit 5 72 a6 i address bus bit 6 73 ale (as)/a7 i address latch enable/address bus bit 7 74 rd*(ds*) i read input(data strobe) 75 cs* i chip select 76 fms i framer mode select 77 wr*(r/w*) i write input(read/write) 78 rlink o receive link data 79 rlclk o receive link clock 80 dvss ? digital signal ground 81 dvdd ? digital positive supply 82 rclk o receive clock 83 dvdd ? digital positive supply 84 dvss ? digital signal ground 85 rdata o receive data 86 rposi i receive positive data input 87 rnegi i receive negative data input 88 rclki i receive clock input table 4-1 pin description sorted by pin number (cont.) pin symbol type description 89 rclko o receive clock output 90 rnego o receive negative data output 91 rposo o receive positive data output 92 rchclk o receive channel clock 93 rsigf o receive signaling freeze output 94 rsig o receive signaling output 95 rser o receive serial data 96 rmsync o receive multiframe sync 97 rfsync o receive frame sync 98 rsync i/o receive sync 99 rlos/lotc o receive loss of sync/ loss of transmit clock 100 rsysclk i receive system clock
DS21352/ds21552 13 of 137 table 4-1 pin description sorted by pin symbol pin symbol type description 3 8mclk o 8.192 mhz clock 13 8xclk o eight times clock 66 a0 i address bus bit 0 67 a1 i address bus bit 1 68 a2 i address bus bit 2 69 a3 i address bus bit 3 70 a4 i address bus bit 4 71 a5 i address bus bit 5 72 a6 i address bus bit 6 73 ale (as)/a7 i address latch enable/address bus bit 7 11 bts i bus type select 36 ci i carry in 54 co o carry out 75 cs* i chip select 56 d0/ad0 i/o data bus bit0/ address/data bus bit 0 57 d1/ad1 i/o data bus bit1/ address/data bus bit 1 58 d2/ad2 i/o data bus bit 2/address/data bus 2 59 d3/ad3 i/o data bus bit 3/address/data bus bit 3 62 d4/ad4 i/o data bus bit4/address/data bus bit 4 63 d5/ad5 i/o data bus bit 5/address/data bus bit 5 64 d6/ad6 i/o data bus bit 6/address/data bus bit 6 65 d7/ad7 i/o data bus bit 7/address/data bus bit 7 44 dvdd ? digital positive supply 81 dvdd ? digital positive supply 45 dvss ? digital signal ground 60 dvss ? digital signal ground 80 dvss ? digital signal ground 84 dvss ? digital signal ground 76 fms i framer mode select 61 dvdd - digital positive supply 83 dvdd ? digital positive supply 25 int* o interrupt 4 jtclk i ieee 1149.1 test clock signal 7 jtdi i ieee 1149.1 test data input 10 jtdo o ieee 1149.1 test data output 2 jtms i ieee 1149.1 test mode select 5 jtrst i ieee 1149.1 test reset 12 liuc i line interface connect 21 mclk i master clock input 55 mux i bus operation 8 nc ? no connect 9 nc ? no connect 15 nc ? no connect 23 nc ? no connect 26 nc ? no connect table 4-1 pin description so rted by pin symbol (cont.) pin symbol type description 27 nc ? no connect 28 nc ? no connect 1 rchblk o receive channel block 92 rchclk o receive channel clock 6 rcl o receive carrier loss 82 rclk o receive clock
DS21352/ds21552 14 of 137 88 rclki i receive clock input 89 rclko o receive clock output 74 rd*(ds*) i read input(data strobe) 85 rdata o receive data 97 rfsync o receive frame sync 79 rlclk o receive link clock 78 rlink o receive link data 99 rlos/lotc o receive loss of sync/ loss of transmit clock 96 rmsync o receive multiframe sync 87 rnegi i receive negative data input 90 rnego o receive negative data output 86 rposi i receive positive data input 91 rposo o receive positive data output 17 rring i receive analog ring input 95 rser o receive serial data 94 rsig o receive signaling output 93 rsigf o receive signaling freeze output 98 rsync i/o receive sync 100 rsysclk i receive system clock 16 rtip i receive analog tip input 18 rvdd ? receive analog positive supply 19 rvss ? receive analog signal ground 20 rvss ? receive analog signal ground 24 rvss ? receive analog signal ground 33 tchblk o transmit channel block 53 tchclk o transmit channel clock 46 tclk i transmit clock 40 tclki i transmit clock input 41 tclko o transmit clock output 50 tdata i transmit data 49 teso o transmit elastic store output 14 test i test 34 tlclk o transmit link clock 35 tlink i transmit link data 39 tnegi i transmit negative data input 42 tnego o transmit negative data output 38 tposi i transmit positive data input 43 tposo o transmit positive data output 32 tring o transmit analog ring output table 4-1 pin description so rted by pin symbol (cont.) 47 tser i transmit serial data 48 tsig i transmit signaling input 52 tssync i transmit system sync 37 tsync i/o transmit sync 51 tsysclk i transmit system clock 29 ttip o transmit analog tip output 31 tvdd ? transmit analog positive supply 30 tvss ? transmit analog signal ground 77 wr*(r/w*) i write input(read/write) 22 xtald o quartz crystal driver
DS21352/ds21552 15 of 137 4. pin function description 4.1.1 transmit side pins signal name: tclk signal description: transmit clock signal type: input a 1.544 mhz primary clock. used to clock data through the transmit side formatter. signal name: tser signal description: transmit serial data signal type: input transmit nrz serial data. sampled on the falling edge of tclk when the transmit side elastic store is disabled. sampled on the falling edge of tsysclk when the tr ansmit side elastic store is enabled. signal name: tchclk signal description: transmit channel clock signal type: output a 192 khz clock which pulses high during the lsb of each channel. synchronous with tclk when the transmit side elastic store is disabled. synchronous with tsysclk when the transmit side elastic store is enabled. useful for parallel to serial conversion of channel data. signal name: tchblk signal description: transmit channel block signal type: output a user programmable output that can be forced high or low during any of the 24 t1 channels. synchronous with tclk when the transmit side elastic store is disabled. synchronous with ts ysclk when the transmit side elastic store is enabled. useful for blocking clocks to a serial uart or lapd controller in app lications where not all t1 channels are used such as fractional t1, 384 kbps (h0), 768 kbps or isdn?pri . also useful for locating individual channels in drop?and?insert applications, for external per?channel loopback, and for per?channel conditi oning. see section 13 on page 76 for more information. signal name: tsysclk signal description: transmit system clock signal type: input 1.544 mhz , 2.048 mhz , 4.096 mhz or 8.192 mhz clock. only used when the transmit side elastic store function is enabled. should be tied low in applications that do not use the transmit side elastic store. see section 20 on page 129 for details on 4.096 mhz and 8.192 mhz operation using the interleave bus option. signal name: tlclk signal description: transmit link clock signal type: output 4 khz or 2 khz (zbtsi) demand clock for the tlink input. see section 15 for details. transmit link data [tlink].
DS21352/ds21552 16 of 137 4.1.1 transmit side pins (cont.) signal name: tlink signal description: transmit link data signal type: input if enabled via tcr1.2, this pin will be sampled on the falling edge of tclk for data insertion into either the fdl stream (esf) or the fs?bit position (d4) or the z?bit position (zbtsi). see section 15 for details. signal name: tsync signal description: transmit sync signal type: input / output a pulse at this pin will establish either frame or multifr ame boundaries for the transmit side. via tcr2.2, the DS21352/552 can be programmed to output either a frame or multiframe pulse at this pin. if this pin is set to output pulses at frame boundaries, it can also be set via tcr2.4 to output double?wide pulses at signaling frames. see section 20 for details. signal name: tssync signal description: transmit system sync signal type: input only used when the transmit side elastic store is enabled. a pulse at this pin will establish either frame or multiframe boundaries for the transmit side. should be tied low in applications that do not use the transmit side elastic store. signal name: tsig signal description: transmit signaling input signal type: input when enabled, this input will sample signaling bits for insertion into outgoing pcm t1 data stream. sampled on the falling edge of tclk when the transmit side elastic store is disabl ed. sampled on the falling edge of tsysclk when the transmit side elastic store is enabled. signal name: teso signal description: transmit elastic store data output signal type: output updated on the rising edge of tclk with data out of the transm it side elastic store whether the elastic store is enabled or not . this pin is normally tied to tdata. signal name: tdata signal description: transmit data signal type: input sampled on the falling edge of tclk with data to be clocked through the transmit side formatter. this pin is normally tied to teso. signal name: tposo signal description: transmit positive data output signal type: output updated on the rising edge of tclko with the bipolar data out of the transmit side formatter. can be programmed to source nrz data via the output data format (ccr1.6) co ntrol bit. this pin is normally tied to tposi.
DS21352/ds21552 17 of 137 4.1.1 transmit side pins (cont.) signal name: tnego signal description: transmit negative data output signal type: output updated on the rising edge of tclko with the bipolar data out of the transmit side formatter. this pin is normally tied to tnegi. signal name: tclko signal description: transmit clock output signal type: output buffered clock that is used to clock data through the transmit side formatter (i.e., either tclk or rclki). this pin is normall y tied to tclki. signal name: tposi signal description: transmit positive data input signal type: input sampled on the falling edge of tclki for data to be transmitted out onto the t1 line. can be internally connected to tposo by tying the liuc pin high. signal name: tnegi signal description: transmit negative data input signal type: input sampled on the falling edge of tclki for data to be transmitted out onto the t1 line. can be internally connected to tnego by tying the liuc pin high. signal name: tclki signal description: transmit clock input signal type: input line interface transmit clock. can be internally connected to tclko by tying the liuc pin high.
DS21352/ds21552 18 of 137 4.1.2 receive side pins signal name: rlink signal description: receive link data signal type: output updated with either fdl data (esf) or fs bits (d4) or z bits (zbtsi) one rclk before the start of a frame. see section 20 for details. signal name: rlclk signal description: receive link clock signal type: output a 4 khz or 2 khz (zbtsi) clock for the rlink output. signal name: rclk signal description: receive clock signal type: output 1.544 mhz clock that is used to clock data through the receive side framer. signal name: rchclk signal description: receive channel clock signal type: output a 192 khz clock which pulses high during the lsb of each channel. synchronous with rclk when the receive side elastic store is disabled. synchronous with rsysclk when the receive side elastic store is enabled. useful for parallel to serial conversion of channel data. signal name: rchblk signal description: receive channel block signal type: output a user programmable output that can be forced high or low during any of the 24 t1 channels. synchronous with rclk when the receive side elastic store is disabled. synchronous with rsys clk when the receive side elastic store is enabled. useful for blocking clocks to a serial uart or lapd controller in applica tions where not all t1 channels are used such as fractional t1, 384k bps service, 768k bps, or isdn?pri. also useful for locating individual channels in drop?and?insert applications, for external per?channel loopback, and for per?channe l conditioning. see section 13 page 76 for details. signal name: rser signal description: receive serial data signal type: output received nrz serial data. update d on rising edges of rclk when the receive side elastic store is disabled. updated on the rising edges of rsysclk when the receive side elastic store is enabled. signal name: rsync signal description: receive sync signal type: input/output an extracted pulse, one rclk wide, is output at this pin which identifies either frame (rcr2.4 = 0) or multiframe (rcr2.4 = 1) boundaries. if set to output frame boundaries then via rcr2.5, rsync can also be set to output double?wide pulses on signaling frames. if the receive side elastic store is enabled via ccr1.2, then this pin can be enabled to be an input via rcr2 .3 at which a frame or multiframe boundary pulse is applied. see section 21 for details.
DS21352/ds21552 19 of 137 4.1.2 receive side pins (cont.) signal name: rfsync signal description: receive frame sync signal type: output an extracted 8 khz pulse, one rclk wide, is outpu t at this pin which identifies frame boundaries. signal name: rmsync signal description: receive multiframe sync signal type: output only used when the receive side elastic store is enabled. an extracted pulse, one rsysclk wide, is output at this pin which identifies multiframe boundaries. if the receive side elastic st ore is disabled, then this output will output multiframe bounda ries associated with rclk. signal name: rdata signal description: receive data signal type: output updated on the rising edge of rclk with the data out of the receive side framer. signal name: rsysclk signal description: receive system clock signal type: input 1.544 mhz , 2.048 mhz , 4.096 mhz or 8.192 mhz clock. only used when the receive side el astic store function is enabled. should be tied low in applications that do not use the receive si de elastic store. see section 20 on page 129 for details on 4. 096 mhz and 8.192 mhz operation using the interleave bus option. signal name: rsig signal description: receive signaling output signal type: output outputs signaling bits in a pcm format. u pdated on rising edges of rclk when the receive side elastic store is disabled. updated on the rising edges of rsysclk when the receive side elastic store is enabled. signal name: rlos/lotc signal description: receive loss of sync / loss of transmit clock signal type: output a dual function output that is controlled by the ccr3.5 control bit. this pin can be programmed to either toggle high when the synchronizer is searching for the frame and multiframe or to toggle high if the tclk pin has not been toggled for 5  sec. signal name: rcl signal description: receive carrier loss signal type: output set high when the line interface detects a carrier loss. signal name: rsigf signal description: receive signaling freeze signal type: output set high when the signaling data is frozen via either automatic or manual intervention. used to alert downstream equipment of the condition. 4.1.2 receive si de pins (cont.) signal name: 8mclk signal description: 8 mhz clock signal type: output an 8.192mhz clock output that is referenced to the clock that is output at the rclk pin. signal name: rposo signal description: receive positive data input signal type: output
DS21352/ds21552 20 of 137 updated on the rising edge of rclko with bipolar data out of the line interface. this pin is normally tied to rposi. signal name: rnego signal description: receive negative data input signal type: output updated on the rising edge of rclko with the bipolar data ou t of the line interface. this pin is normally tied to rposi. signal name: rclko signal description: receive clock output signal type: output buffered recovered clock from the t1 line. this pin is normally tied to rclki. signal name: rposi signal description: receive positive data input signal type: input sampled on the falling edge of rclki for data to be clocke d through the receive side framer. rposi and rnegi can be tied together for a nrz interface. can be internally connected to rposo by tying the liuc pin high. signal name: rnegi signal description: receive negative data input signal type: input sampled on the falling edge of rclki for data to be clocke d through the receive side framer. rposi and rnegi can be tied together for a nrz interface. can be internally connected to rnego by tying the liuc pin high. signal name: rclki signal description: receive clock input signal type: input clock used to clock data through the receive side framer. this pin is normally tied to rclko. can be internally connected to rclko by tying the liuc pin high.
DS21352/ds21552 21 of 137 4.1.3 parallel control port pins signal name: int* signal description: interrupt signal type: output flags host controller during conditions and change of conditions defined in the status registers 1 and 2 and the hdlc status register. active low, open drain output signal name: fms signal description: framer mode select signal type: input selects the ds2152 mode when high or the DS21352/552 mode when low. if high, the jtrst is internally pulled low. if low, jtrst has normal jtag functionality. this pin has a 10k pull up resistor. signal name: test signal description: 3?state control signal type: input set high to 3?state all output and i/o pins (including the parallel control port) when fms = 1 or when fms = 0 and jtrst* is tied low. set low for normal operation. ignored when fms = 0 and jtrst* = 1. useful for board level testing. signal name: mux signal description: bus operation signal type: input set low to select non?multiplexed bus operation. set high to select multiplexed bus operation. signal name: ad0 to ad7 signal description: data bus [d0 to d7] or address/data bus signal type: input in non?multiplexed bus operation (mux = 0), serves as the data bus. in multiplexed bus operation (mux = 1), serves as a 8? bit multiplexed address / data bus. signal name: a0 to a6 signal description: address bus signal type: input in non?multiplexed bus operation (mux = 0), serves as the address bus. in multiplexed bus operation (mux = 1), these pins are not used and should be tied low. signal name: bts signal description: bus type select signal type: input strap high to select motorola bus timing; strap low to select intel bus timing. this pin controls the function of the rd*(ds*), ale(as), and wr*(r/w*) pins. if bts = 1, then these pins assume the function listed in parenthesis (). signal name: rd*(ds*) signal description: read input - data strobe signal type: input rd* and ds* are active low signals. ds active high when mux = 0. see bus timing diagrams.
DS21352/ds21552 22 of 137 4.1.3 parallel control port pins (cont.) signal name: cs* signal description: chip select signal type: input must be low to read or write to the device. cs* is an active low signal. signal name: ale(as)/a7 signal description: address latch enable(address strobe) or a7 signal type: input in non?multiplexed bus operation (mux = 0), serves as the upper address bit. in multiplexed bus operation (mux = 1), serves to de-multiplex the bus on a positive?going edge. signal name: wr*(r/w*) signal description: write input(read/write) signal type: input wr* is an active low signal.
DS21352/ds21552 23 of 137 4.1.4 jtag test access port pins signal name: jtrst signal description: ieee 1149.1 test reset signal type: input if fms = 1: jtag functionality is not available and jtrst is held low internally. if fms = 0: jtag functionality is available and jtrst is pulled up internally by a 10k ? resistor. if fms = 0 and boundary scan is not used, this pin should be held low. this signal is used to asynchronously reset the test access port controller. the device operates as a t1/e1 transceiver if jtrst is pulled low. signal name: jtms signal description: ieee 1149.1 test mode select signal type: input this pin is sampled on the rising edge of jtclk and is us ed to place the test access port into the various defined ieee 1149.1 states. this pin has a 10k pull up resistor. signal name: jtclk signal description: ieee 1149.1 test clock signal signal type: input this signal is used to shift data into jtdi on the rising edge and out of jtdo on the falling edge. signal name: jtdi signal description: ieee 1149.1 test data input signal type: input test instructions and data are clocked into this pin on the rising edge of jtclk. this pin has a 10k pull up resistor. signal name: jtdo signal description: ieee 1149.1 test data output signal type: output test instructions and data are clocked out of this pin on the falling edge of jtclk. if not used, this pin should be left unconnected. 4.1.5 interleave bus operation pins signal name: ci signal description: carry in signal type: input a rising edge on this pin causes rser and rsig to come out of high z state and tser and tsig to start sampling on the next rising edge of rsysclk/tsysclk beginning an i/o sequence of 8 or 256 bits of data. this pin has a 10k pull up resistor. signal name: co signal description: carry out signal type: output an output that is set high when the last bit of the 8 or 256 ibo output sequence has occurred on rser and rsig.
DS21352/ds21552 24 of 137 4.1.6 line interface pins signal name: mclk signal description: master clock input signal type: input a 1.544 mhz (50 ppm) clock source with ttl levels is applied at this pin. this clock is used internally for both clock/data recovery and for jitter attenuation. a quartz crystal of 1. 544 mhz may be applied across mclk and xtald instead of the ttl level clock source. signal name: xtald signal description: quartz crystal driver signal type: output a quartz crystal of 1.544 mhz may be applied across mclk and xtald instead of a ttl level clock source at mclk. leave open circuited if a ttl clock source is applied at mclk. signal name: 8xclk signal description: eight times clock signal type: output a 12.352 mhz clock that is locked to the 1.544 mhz clock provided from the clock/data recovery block (if the jitter attenuator is enabled on the receive side) or from the tclki pin (if the jitter attenuator is enabled on the transmit side). can be intern ally disabled by writing a 08h to test2.3 if not needed. signal name: liuc signal description: line interface connect signal type: input tie low to separate the line interface circuitry from the framer/formatter circuitry and activate the tposi/tnegi/tclki/rposi/rnegi/ rclki pins. tie high to connect the line interface circuitry to the framer/formatter circuitry and deactivate the tposi/tnegi/tclki/rpos i/rnegi/rclki pins. when liuc is tied high, the tposi/tnegi/tclki/ rposi/rnegi/ rclki pins should be tied low. signal name: rtip & rring signal description: receive tip and ring signal type: input analog inputs for clock recovery circuitry. these pins connect via a 1:1 transformer to the t1 line. see section 16 for details . signal name: ttip & tring signal description: transmit tip and ring signal type: output analog line driver outputs. these pins connect via a transformer to the t1 line. see section 16 for details.
DS21352/ds21552 25 of 137 4.1.7 supply pins signal name: dvdd signal description: digital positive supply signal type: supply 5.0 volts +/-5% (ds21552) or 3.3 volts +/-5% (DS21352). should be tied to the rvdd and tvdd pins. signal name: rvdd signal description: receive analog positive supply signal type: supply 5.0 volts +/-5% (ds21552) or 3.3 volts +/-5% (DS21352). should be tied to the dvdd and tvdd pins. signal name: tvdd signal description: transmit analog positive supply signal type: supply 5.0 volts +/-5% (ds21552) or 3.3 volts +/-5% (DS21352). should be tied to the rvdd and dvdd pins. signal name: dvss signal description: digital signal ground signal type: supply should be tied to the rvss and tvss pins. signal name: rvss signal description: receive analog signal ground signal type: supply 0.0 volts. should be tied to dvss and tvss. signal name: tvss signal description: transmit analog signal ground signal type: supply 0.0 volts. should be tied to dvss and rvss.
DS21352/ds21552 26 of 137 5. parallel port the sct is controlled via either a non?multiplexed (mux = 0) or a multiplexed (mux = 1) bus by an external microcontroller or microprocessor. the sct can operate with either intel or motorola bus timing configurations. if the bts pin is tied low, intel timing will be selected; if tied high, motorola timing will be selected. all motorola bus signals are listed in parenthesis (). see the timing diagrams in the a.c. electrical characteristics in section 24 for more details. 5.1 register map table 5-1 register map sorted by address address r/w register name register abbreviation 00 r/w hdlc control hcr 01 r/w hdlc status hsr 02 r/w hdlc interrupt mask himr 03 r/w receive hdlc information rhir 04 r/w receive bit oriented code rboc 05 r receive hdlc fifo rhfr 06 r/w transmit hdlc information thir 07 r/w transmit bit oriented code tboc 08 w transmit hdlc fifo thfr 09 r/w test 2 see note 1 test2 (set to 00h) 0a r/w common control 7 ccr7 0b ? not present ? 0c ? not present ? 0d ? not present ? 0e ? not present ? 0f r device id idr 10 r/w receive information 3 rir3 11 r/w common control 4 ccr4 12 r/w in?band code control ibcc 13 r/w transmit code definition tcd 14 r/w receive up code definition rupcd 15 r/w receive down code definition rdncd 16 r/w transmit channel control 1 tcc1 17 r/w transmit channel control 2 tcc2 18 r/w transmit channel control 3 tcc3 19 r/w common control 5 ccr5 1a r transmit ds0 monitor tds0m 1b r/w receive channel control 1 rcc1 1c r/w receive channel control 2 rcc2 1d r/w receive channel control 3 rcc3 1e r/w common control 6 ccr6 1f r receive ds0 monitor rds0m 20 r/w status 1 sr1 table 5-1 register map sorted by address (cont.) address r/w register name register abbreviation 21 r/w status 2 sr2 22 r/w receive information 1 rir1 23 r line code violation count 1 lcvcr1 24 r line code violation count 2 lcvcr2 25 r path code violation count 1 see note 3 pcvcr1 26 r path code violation count 2 pcvcr2
DS21352/ds21552 27 of 137 address r/w register name register abbreviation 27 r multiframe out of sync count 2 moscr2 28 r receive fdl register rfdl 29 r/w receive fdl match 1 rmtch1 2a r/w receive fdl match 2 rmtch2 2b r/w receive control 1 rcr1 2c r/w receive control 2 rcr2 2d r/w receive mark 1 rmr1 2e r/w receive mark 2 rmr2 2f r/w receive mark 3 rmr3 30 r/w common control 3 ccr3 31 r/w receive information 2 rir2 32 r/w transmit channel blocking 1 tcbr1 33 r/w transmit channel blocking 2 tcbr2 34 r/w transmit channel blocking 3 tcbr3 35 r/w transmit control 1 tcr1 36 r/w transmit control 2 tcr2 37 r/w common control 1 ccr1 38 r/w common control 2 ccr2 39 r/w transmit transparency 1 ttr1 3a r/w transmit transparency 2 ttr2 3b r/w transmit transparency 3 ttr3 3c r/w transmit idle 1 tir1 3d r/w transmit idle 2 tir2 3e r/w transmit idle 3 tir3 3f r/w transmit idle definition tidr 40 r/w transmit channel 9 tc9 41 r/w transmit channel 10 tc10 42 r/w transmit channel 11 tc11 43 r/w transmit channel 12 tc12 44 r/w transmit channel 13 tc13 45 r/w transmit channel 14 tc14 46 r/w transmit channel 15 tc15 47 r/w transmit channel 16 tc16 48 r/w transmit channel 17 tc17 49 r/w transmit channel 18 tc18 4a r/w transmit channel 19 tc19 4b r/w transmit channel 20 tc20 4c r/w transmit channel 21 tc21 table 5-1 register map sorted by address (cont.) address r/w register name register abbreviation 4d r/w transmit channel 22 tc22 4e r/w transmit channel 23 tc23 4f r/w transmit channel 24 tc24 50 r/w transmit channel 1 tc1 51 r/w transmit channel 2 tc2 52 r/w transmit channel 3 tc3 53 r/w transmit channel 4 tc4 54 r/w transmit channel 5 tc5 55 r/w transmit channel 6 tc6 56 r/w transmit channel 7 tc7 57 r/w transmit channel 8 tc8 58 r/w receive channel 17 rc17 59 r/w receive channel 18 rc18
DS21352/ds21552 28 of 137 5a r/w receive channel 19 rc19 5b r/w receive channel 20 rc20 5c r/w receive channel 21 rc21 5d r/w receive channel 22 rc22 5e r/w receive channel 23 rc23 5f r/w receive channel 24 rc24 60 r receive signaling 1 rs1 61 r receive signaling 2 rs2 62 r receive signaling 3 rs3 63 r receive signaling 4 rs4 64 r receive signaling 5 rs5 65 r receive signaling 6 rs6 66 r receive signaling 7 rs7 67 r receive signaling 8 rs8 68 r receive signaling 9 rs9 69 r receive signaling 10 rs10 6a r receive signaling 11 rs11 6b r receive signaling 12 rs12 6c r/w receive channel blocking 1 rcbr1 6d r/w receive channel blocking 2 rcbr2 6e r/w receive channel blocking 3 rcbr3 6f r/w interrupt mask 2 imr2 70 r/w transmit signaling 1 ts1 71 r/w transmit signaling 2 ts2 72 r/w transmit signaling 3 ts3 73 r/w transmit signaling 4 ts4 74 r/w transmit signaling 5 ts5 75 r/w transmit signaling 6 ts6 76 r/w transmit signaling 7 ts7 77 r/w transmit signaling 8 ts8 78 r/w transmit signaling 9 ts9 table 5-1 register map sorted by address (cont.) address r/w register name register abbreviation 79 r/w transmit signaling 10 ts10 7a r/w transmit signaling 11 ts11 7b r/w transmit signaling 12 ts12 7c r/w line interface control licr 7d r/w test 1 see note 1 test1 (set to 00h) 7e r/w transmit fdl register tfdl 7f r/w interrupt mask register 1 imr1 80 r/w receive channel 1 rc1 81 r/w receive channel 2 rc2 82 r/w receive channel 3 rc3 83 r/w receive channel 4 rc4 84 r/w receive channel 5 rc5 85 r/w receive channel 6 rc6 86 r/w receive channel 7 rc7 87 r/w receive channel 8 rc8 88 r/w receive channel 9 rc9 89 r/w receive channel 10 rc10 8a r/w receive channel 11 rc11 8b r/w receive channel 12 rc12 8c r/w receive channel 13 rc13 8d r/w receive channel 14 rc14 8e r/w receive channel 15 rc15
DS21352/ds21552 29 of 137 8f r/w receive channel 16 rc16 90 r/w receive hdlc ds0 control register 1 rdc1 91 r/w receive hdlc ds0 control register 2 rdc2 92 r/w transmit hdlc ds0 control register 1 tdc1 93 r/w transmit hdlc ds0 control register 2 tdc2 94 r/w interleave bus operation register ibo 95 r/w test 3 see note 1 test3 (set to 00h) 96 r/w test 4 see note 1 test4 (set to 00h) 97 - not present - 98 - not present - 99 - not present - 9a - not present - 9b - not present - 9c - not present - 9d - not present - 9e - not present - 9f - not present - notes: 1. test1, test2, test3 and test4 registers are used by the factory; these registers must be cleared (set to 00h) on power? up initialization to insure proper operation. 2. register banks axh, bxh, cxh, dxh, exh, and fxh are not accessible. 3. upper nibble of the pcvcr1 register is used for moscr1 6. control, id, and test registers the operation of the DS21352/552 is configured via a se t of eleven control registers. typically, the control registers are only accessed when the syst em is first powered up. once the DS21352/552 has been initialized, the control registers will only need to be accessed when there is a change in the system configuration. there are two receive control re gisters (rcr1 and rcr2), two transmit control registers (tcr1 and tcr2), and seven common control registers (ccr1 to ccr7). each of the eleven registers are described in this section. 6.1 power-up sequence on power?up, after the supplies are stable the DS21352/552 should be configured for operation by writing to all of the internal registers (this includes setting the test registers to 00h) since the contents of the internal registers cannot be predicted on po wer?up. the lirst (ccr7.7) should be toggled from zero to one to reset the line interface circuitry (it will take the DS21352/552 about 40ms to recover from the lirst bit being toggled). finally, after the tsysclk and rsysclk inputs are stable, the esr bit should be toggled from a zero to a one (this step can be skipped if the elas tic stores are disabled). 6.2 device id there is a device identification register (idr) at address 0fh. the msb of this read?only register is fixed to a zero indicating that a t1 device is present. the next 3 msbs are used to indicate which t1 device is present; ds2152, DS21352, or ds21552. the e1 pin?for?pin compatible scts will have a logic one in the msb position with the following 3 msbs indicating which e1 sct is present; ds2154, ds21354, or ds21554. table 6-1 represents the possible variations of thes e bits and the associated sct. idr: device iden tification regist er (address=0f hex) (msb) (lsb) t1e1 bit 6 bit 5 bit 4 id3 id2 id1 id0 symbol position name and description t1e1 idr.7 t1 or e1 chip determination bit.
DS21352/ds21552 30 of 137 0=t1 chip 1=e1 chip bit 6 idr.6 bit 6. bit 5 idr.5 bit 5. bit 4 idr.4 bit 4. id3 idr.3 chip revision bit 3. msb of a decimal code that represents the chip revision. id2 idr.1 chip revision bit 2. id1 idr.2 chip revision bit 1.
DS21352/ds21552 31 of 137 table 6-1 device id bit map sct t1/e1 bit 6 bit 5 bit 4 ds2152 0 0 0 0 DS21352 0 0 0 1 ds21552 0 0 1 0 ds2154 1 0 0 0 ds21354 1 0 0 1 ds21554 1 0 1 0 the lower four bits of the idr are used to display the die revision of the chip. rcr1: receive control register 1 (address=2b hex) (msb) (lsb) lcvcrf arc oof1 oof2 syncc synct synce resync symbol position name and description lcvcrf rcr1.7 line code violation count register function select. 0 = do not count excessive zeros 1 = count excessive zeros arc rcr1.6 auto resync criteria. 0 = resync on oof or rcl event 1 = resync on oof only oof1 rcr1.5 out of frame select 1. 0 = 2/4 frame bits in error 1 = 2/5 frame bits in error oof2 rcr1.4 out of frame select 2. 0 = follow rcr1.5 1 = 2/6 frame bits in error syncc rcr1.3 sync criteria. in d4 framing mode. 0 = search for ft pattern, then search for fs pattern 1 = cross couple ft and fs pattern in esf framing mode. 0 = search for fps pattern only 1 = search for fps and verify with crc6 synct rcr1.2 sync time. 0 = qualify 10 bits 1 = qualify 24 bits synce rcr1.1 sync enable. 0 = auto resync enabled 1 = auto resync disabled resync rcr1.0 resync. when toggled from low to high, a resynchronization of the receive side framer is initiated. must be cleared and set again for a subsequent resync.
DS21352/ds21552 32 of 137 rcr2: receive control register 2 (address=2c hex) (msb) (lsb) rcs rzbtsi rsdw rsm rsio rd4ym fsbe moscrf symbol position name and description rcs rcr2.7 receive code select. 0 = idle code (7f hex) 1 = digital milliwatt code (1e/0b/0b/1e/9e/8b/8b/9e hex) rzbtsi rcr2.6 receive side zbtsi support enable. allows zbtsi information to be output on rlink pin. 0 = zbtsi disabled 1 = zbtsi enabled rsdw rcr2.5 rsync double?wide. (note: this bit must be set to zero when rcr2.4 = 1 or when rcr2.3 = 1) 0 = do not pulse double wide in signaling frames 1 = do pulse double wide in signaling frames rsm rcr2.4 rsync mode select. selects frame or multiframe pulse when rsync pin is in output mode. in input mode (elastic store must be enabled) multiframe mode is only useful when receive signaling re-insertion is enabled. see the timing in section 21. 0 = frame mode 1 = multiframe mode rsio rcr2.3 rsync i/o select. (note: this bit must be set to zero when ccr1.2 = 0) 0 = rsync is an output 1 = rsync is an input (only valid if elastic store enabled) rd4ym rcr2.2 receive side d4 yellow alarm select. 0 = zeros in bit 2 of all channels 1 = a one in the s?bit position of frame 12 fsbe rcr2.1 pcvcr fs?bit error report enable. 0 = do not report bit errors in fs?bit position; only ft bit position 1 = report bit errors in fs?bit position as well as ft bit position moscrf rcr2.0 multiframe out of sync count register function select. 0 = count errors in the framing bit position 1 = count the number of multiframes out of sync
DS21352/ds21552 33 of 137 tcr1: transmit control register 1 (address=35 hex) (msb) (lsb) lotcmc tfpt tcpt tsse gb7s tfdls tbl tyel symbol position name and description lotcmc tcr1.7 loss of transmit clock mux control. determines whether the transmit side formatter should switch to rclk if the tclk input should fail to transition. 0 = do not switch to rclk if tclk stops 1 = switch to rclk if tclk stops tfpt tcr1.6 transmit f?bit pass through. (see note below) 0 = f bits sourced internally 1 = f bits sampled at tser tcpt tcr1.5 transmit crc pass through. (see note below) 0 = source crc6 bits internally 1 = crc6 bits sampled at tser during f?bit time tsse tcr1.4 transmit software signaling enable. (see note below) 0 = no signaling is inserted in any channel 1 = signaling is inserted in all channels from the ts1-ts12 registers (the ttr registers can be used to block insertion on a channel by channel basis) gb7s tcr1.3 global bit 7 stuffing. (see note below) 0 = allow the ttr registers to determine which channels containing all zeros are to be bit 7 stuffed 1 = force bit 7 stuffing in all zero byte channels regardless of how the ttr registers are programmed tfdls tcr1.2 tfdl register select. (see note below) 0 = source fdl or fs bits from the internal tfdl register (legacy fdl support mode) 1 = source fdl or fs bits from the intern al hdlc/boc controller or the tlink pin tbl tcr1.1 transmit blue alarm. (see note below) 0 = transmit data normally 1 = transmit an unframed all one?s code at tposo and tnego tyel tcr1.0 transmit yellow alarm. (see note below) 0 = do not transmit yellow alarm 1 = transmit yellow alarm note: for a description of how the bits in tcr1 affect the transmit side formatter, see figure 22-2
DS21352/ds21552 34 of 137 tcr2: transmit control register 2 (address=36 hex) (msb) (lsb) test1 test0 tzbtsi tsdw tsm tsio td4ym tb7zs symbol position name and description test1 tcr2.7 test mode bit 1 for output pins. see table 6-2.. test0 tcr2.6 test mode bit 0 for output pins. see table 6-2. tzbtsi tcr2.5 transmit side zbtsi support enable. allows zbtsi information to be input on tlink pin. 0 = zbtsi disabled 1 = zbtsi enabled tsdw tcr2.4 tsync double?wide. (note: this bit must be set to zero when tcr2.3=1 or when tcr2.2=0) 0 = do not pulse double?wide in signaling frames 1 = do pulse double?wide in signaling frames tsm tcr2.3 tsync mode select. selects frame or multiframe mode for the tsync pin. see the timing in section 21 0 = frame mode 1 = multiframe mode tsio tcr2.2 tsync i/o select. 0 = tsync is an input 1 = tsync is an output td4ym tcr2.1 transmit side d4 yellow alarm select. 0 = zeros in bit 2 of all channels 1 = a one in the s?bit position of frame 12 tb7zs tcr2.0 transmit side bit 7 zero suppression enable. 0 = no stuffing occurs 1 = bit 7 force to a one in channels with all zeros table 6-2 output pin test modes test 1 test 0 effect on output pins 0 0 operate normally 0 1 force all output pins into 3?state (including all i/o pins and parallel port pins) 1 0 force all output pins low (including all i/o pins except parallel port pins) 1 1 force all output pins high (including all i/o pins except parallel port pins)
DS21352/ds21552 35 of 137 ccr1: common control register 1 (address=37 hex) (msb) (lsb) tese odf rsao tsclkm rsclkm rese plb flb symbol position name and description tese ccr1.7 transmit elastic store enable. 0 = elastic store is bypassed 1 = elastic store is enabled odf ccr1.6 output data format. 0 = bipolar data at tposo and tnego 1 = nrz data at tposo; tnego = 0 rsao ccr1.5 receive signaling all one?s. this bit should not be enabled if hardware signaling is being utilized. see section 10 for more details. 0 = allow robbed signaling bits to appear at rser 1 = force all robbed signaling bits at rser to one tsclkm ccr1.4 tsysclk mode select. 0 = if tsysclk is 1.544 mhz 1 = if tsysclk is 2.048 mhz or ibo enabled (see section 20 for details on ibo function) rsclkm ccr1.3 rsysclk mode select. 0 = if rsysclk is 1.544 mhz 1 = if rsysclk is 2.048 mhz or ibo enabled (see section 20 for details on ibo function) rese ccr1.2 receive elastic store enable. 0 = elastic store is bypassed 1 = elastic store is enabled plb ccr1.1 payload loopback. 0 = loopback disabled 1 = loopback enabled flb ccr1.0 framer loopback. 0 = loopback disabled 1 = loopback enabled 6.3 payload loopback payload loopback when ccr1.1 is set to a one, th e DS21352/552 will be forced into payload loopback (plb). normally, this loopback is only enabled when esf framing is being performed but can be enabled also in d4 framing applications. in a plb situ ation, the DS21352/552 will loop the 192 bits of pay-load data (with bpvs corrected) from the receive secti on back to the transmit section. the fps framing pat- tern, crc6 calculation, and the fdl bits are not looped back, they are reinserted by the DS21352/552. when plb is enabled, the following will occur: 1. data will be transmitted from the tposo and tnego pins synchronous with rclk instead of tclk 2. all of the receive side signals will continue to operate normally 3. the tchclk and tchblk signals are forced low 4. data at the tser, tdata, and tsig pins is ignored 5. the tlclk signal will become synchronous with rclk instead of tclk. 6.4 framer loopback when ccr1.0 is set to a one, the DS21352/552 will enter a framer loopback (flb) mode. this loopback is useful in testing and debugging app lications. in flb, the DS21352/552 will loop data from the transmit side back to the receive side. when flb is enabled, the following will occur: 1. an unframed all one?s code will be transmitted at tposo and tnego 2. data at rposi and rnegi will be ignored
DS21352/ds21552 36 of 137 3. all receive side signals will take on timing synchronous with tclk instead of rclki. please note that it is not acceptable to have rc lk tied to tclk during th is loopback because this will cause an unstable condition. ccr2: common control register 2 (address=38 hex) (msb) (lsb) tfm tb8zs tslc96 tfdl rfm rb8zs rslc96 rzse symbol position name and description tfm ccr2.7 transmit frame mode select. 0 = d4 framing mode 1 = esf framing mode tb8zs ccr2.6 transmit b8zs enable. 0 = b8zs disabled 1 = b8zs enabled tslc96 ccr2.5 transmit slc?96 / fs?bit insertion enable. only set this bit to a one in d4 framing applications. must be set to one to source the fs pattern from the tfdl register. see section 15.5 for details. 0 = slc?96/fs?bit insertion disabled 1 = slc?96/fs?bit insertion enabled tfdl ccr2.4 transmit fdl zero stuffer enable. set this bit to zero if using the internal hdlc/boc controller instead of the legacy support for the fdl. see section 15 for details. 0 = zero stuffer disabled 1 = zero stuffer enabled rfm ccr2.3 receive frame mode select. 0 = d4 framing mode 1 = esf framing mode rb8zs ccr2.2 receive b8zs enable. 0 = b8zs disabled 1 = b8zs enabled rslc96 ccr2.1 receive slc?96 enable. only set this bit to a one in d4/slc?96 framing applications. see section 15.5 for details. 0 = slc?96 disabled 1 = slc?96 enabled rzse ccr2.0 receive fdl zero destuffer enable. set this bit to zero if using the internal hdlc/boc controller instead of the legacy support for the fdl. see section 15.4 for details. 0 = zero destuffer disabled 1 = zero destuffer enabled ccr3: common control register 3 (address=30 hex) (msb) (lsb) resmdm tclksrc rlosf rsms pde ecus tloop tesmdm symbol position name and description resmdm ccr3.7 receive elastic store minimum delay mode. see section 14.4 for details. 0 = elastic stores operate at full two frame depth 1 = elastic stores operate at 32?bit depth tclksrc ccr3.6 transmit clock source select. this function allows the user to internally select rclk as the clock source for the transmit side formatter. 0 = source of transmit clock determined by tcr1.7 (lotcmc) 1 = force transmitter to internally switch to rclk as source of transmit clock. signal at tclk pin is ignored rlosf ccr3.5 function of the rlos/lotc output. 0 = receive loss of sync (rlos)
DS21352/ds21552 37 of 137 1 = loss of transmit clock (lotc) rsms ccr3.4 rsync multiframe skip control. useful in framing format conversions from d4 to esf. this function is not available when the receive side elastic store is enabled. 0 = rsync will output a pulse at every multiframe 1 = rsync will output a pulse at every other multiframe note: for this bit to have any affect, the rsync must be set to output multiframe pulses (rcr2.4=1 and rcr2.3=0). pde ccr3.3 pulse density enforcer enable. 0 = disable transmit pulse density enforcer 1 = enable transmit pulse density enforcer ecus ccr3.2 error counter update select. see section 8 for details. 0 = update error counters once a second 1 = update error counters every 42 ms (333 frames) tloop ccr3.1 transmit loop code enable. see section 17 for details. 0 = transmit data normally 1 = replace normal transmitted data with repeating code as defined in tcd register tesmdm ccr3.0 transmit elastic store minimum delay mode. see section 14.4 for details. 0 = elastic stores operate at full two frame depth 1 = elastic stores operate at 32?bit depth
DS21352/ds21552 38 of 137 6.5 pulse density enforcer the framer always examines both the transmit and receive data streams for violations of the following rules which are required by ansi t1.403: ? no more than 15 consecutive zeros ? at least n ones in each and every time window of 8 x (n +1) bits where n = 1 through 23 violations for the transmit and receive data st reams are reported in the rir2.0 and rir2.1 bits respectively. when the ccr3.3 is set to one, the ds 21352 will force the transmitted stream to meet this requirement no matter the content of the transmitted stream. when running b8zs, the ccr3.3 bit should be set to zero since b8zs encoded data stre ams cannot violate the pul se density requirements.
DS21352/ds21552 39 of 137 ccr4: common control register 4 (address=11 hex) (msb) (lsb) rsre rpcsi rfsa1 rfe rff thse tpcsi tirfs symbol position name and description rsre ccr4.7 receive side signaling re?insertion enable. see section 10.2 for details. 0 = do not re?insert signaling bits into the data stream presented at the rser pin 1 = reinsert the signaling bits into data stream presented at the rser pin rpcsi ccr4.6 receive per?channel signaling insert. see section 10.2 for more details. 0 = do not use rchblk to determine which channels should have signaling re?inserted 1 = use rchblk to determine which channels should have signaling re?inserted rfsa1 ccr4.5 receive force signaling all ones. see section 10.2 for more details. 0 = do not force extracted robbed?bit signaling bit positions to a one 1 = force extracted robbed?bit signaling bit positions to a one rfe ccr4.4 receive freeze enable. see section 10.2 for details. 0 = no freezing of receive signaling data will occur 1 = allow freezing of receive signaling data at rsig (and rser if ccr4.7 = 1). rff ccr4.3 receive force freeze. freezes receive side signaling at rsig (and rser if ccr4.7=1); will override receive freeze enab le (rfe). see section 10.2 for details. 0 = do not force a freeze event 1 = force a freeze event thse ccr4.2 transmit hardware signaling insertion enable. see section 10.2 for details. 0 = do not insert signaling from the tsig pin into the data stream presented at the tser pin 1 = insert signaling from the tsig pin into data stream presented at the tser pin tpcsi ccr4.1 transmit per?channel signaling insert. see section 10.2 for details. 0 = do not use tchblk to determine which channels should have signaling inserted from tsig 1 = use tchblk to determine which channels should have signaling inserted from tsig tirfs ccr4.0 transmit idle registers (tir) function select. see section 2.1 for timing details. 0 = tirs define in which channels to insert idle code 1 = tirs define in which channels to insert data from rser (i.e., per-channel loopback function)
DS21352/ds21552 40 of 137 ccr5: common control register 5 (address=19 hex) (msb) (lsb) tjc llb liais tcm4 tcm3 tcm2 tcm1 tcm0 symbol position name and description tjc ccr5.7 transmit japanese crc6 enable. 0 = use ansi/at&t/itu crc6 calculation (normal operation) 1 = use japanese standard jt?g704 crc6 calculation llb ccr5.6 local loopback . 0 = loopback disabled 1 = loopback enabled liais ccr5.5 line interface ais generation enable. 0 = allow normal data from tposi/tnegi to be transmitted at ttip and tring 1 = force unframed all ones to be transmitted at ttip and tring tcm4 ccr5.4 transmit channel monitor bit 4. msb of a channel decode that determines which transmit channel data will appear in the tds0m register. see section 9 for details. tcm3 ccr5.3 transmit channel monitor bit 3. tcm2 ccr5.2 transmit channel monitor bit 2. tcm1 ccr5.1 transmit channel monitor bit 1. tcm0 ccr5.0 transmit channel monitor bit 0. lsb of the channel decode.
DS21352/ds21552 41 of 137 ccr6: common control register 6 (address=1e hex) (msb) (lsb) rjc resa tesa rcm4 rcm3 rcm2 rcm1 rcm0 symbol position name and description rjc ccr6.7 receive japanes e crc6 enable. 0 = use ansi/at&t/itu crc6 calculation (normal operation) 1 = use japanese standard jt?g704 crc6 calculation resa ccr6.6 receive elastic store align. setting this bit from a zero to a one will force the receive elastic store?s write/read pointers to a minimu m separation of half a frame. no action will be taken if the pointer separation is already greater or equal to half a frame. if pointer separation is less than half a frame, the command will be executed and the data will be disrupted. should be toggled after rsysclk has been applied and is stable. must be cleared and set again for a subsequent align. see section 14.3 for details. tesa ccr6.5 transmit elastic store align. setting this bit from a zero to a one will force the transmit elastic store?s write/read pointers to a minimum separation of half a frame. no action will be taken if the pointer separation is already greater or equal to half a frame. if pointer separation is less than half a frame, the command will be executed and the data will be disrupted. should be toggled after tsysclk has been applied and is stable. must be cleared and set again for a subsequent align. see section 14.3 for details. rcm4 ccr6.4 receive channel monitor bit 4. msb of a channel decode that determines which receive channel data will appear in the rds0m register. see section 9 for details. rcm3 ccr6.3 receive channel monitor bit 3. rcm2 ccr6.2 receive channel monitor bit 2. rcm1 ccr6.1 receive channel monitor bit 1. rcm0 ccr6.0 receive channel monitor bit 0 . lsb of the channel decode.
DS21352/ds21552 42 of 137 ccr7: common control register 7 (address=0a hex) (msb) (lsb) lirst rlb resr tesr ? liusi cdig liuodo symbol position name and description lirst ccr7.7 line interface reset. setting this bit from a zero to a one will initiate an internal reset that affects the clock recovery state machine and jitter attenuator. normally this bit is only toggled on power?up. must be cleared and set again for a subsequent reset. rlb ccr7.6 remote loopback. 0 = loopback disabled 1 = loopback enabled resr ccr7.5 receive elastic store reset. setting this bit from a zero to a one will minimize the delay through the receive elastic store. should be toggled after rsysclk has been applied and is stable. see section 14.3 fo r details. do not leave this bit set high. tesr ccr7.4 transmit elastic store reset. setting this bit from a zero to a one will maximize the delay through the transmit elastic store. transmit data is lost during the reset. should be toggled after tsysclk has been applied and is stable. see section 14.3for details. do not leave this bit set high. -ccr7.3 reserved. must be set low for proper operation. liusi ccr7.2 line interface synchroniz ation interface enable. this control bit determines whether the line receiver should handle a normal t1 signal or a 1.544mhz synchronization signal. this control has no affect on the line interface transmitter. 0 = line receiver configured to support a normal t1 signal 1 = line receiver configured to support a synchronization signal cdig ccr7.1 customer disconnect in dication generator. this control bit determines whether the line interface will generate an unframed ...1010... pattern at ttip and tring instead of the normal data pattern. 0 = generate normal data at ttip & tring as input via tposi & tnegi 1 = generate a ...1010... pattern at ttip and tring liuodo ccr7.0 line interface open drain option. this control bit determines whether the ttip and tring outputs will be open drain or not. the line driver outputs can be forced open drain to allow 6vpeak pulses to be generated or to allow the creation of a very low power interface. 0 = allow ttip and tring to operate normally 1 = force the ttip and tring outputs to be open drain 6.6 remote loopback when ccr7.6 is set to a one, the DS21352/552 will be forced into remote loopback (rlb). in this loopback, data input via the rposi and rnegi pins will be transmitted back to the tposo and tnego pins. data will continue to pass through the receive side framer of the DS21352/552 as it would normally and the data from the transmit side formatter will be ignored. please see figure 3-1 for more details.
DS21352/ds21552 43 of 137 7. status and information registers there is a set of nine registers that contain information on the current real time status of the device, status register 1 (sr1), status register 2 (sr2), receive information registers 1 to 3 (rir1/rir2/rir3) and a set of four registers for the onboard hdlc and boc c ontroller. the specific details on the four registers pertaining to the hdlc controller are covered in section 15.3.2 but they operate the same as the other status registers in the DS21352/552 and this operation is described below. when a particular event has occurred (or is occurring), the appropriate bit in one of these nine registers will be set to a one. all of the bits in sr1, sr2, rir1, rir2, and rir3 registers operate in a latched fashion. this means that if an event or an alarm occurs and a bit is set to a one in any of the registers, it will remain set until the user reads that bit. the bit will be cleared when it is read and it will not be set again until the event has occurred again (or in the case of the rbl, ryel, lrcl, and rlos alarms, the bit will remain set if the alarm is still present). there are bits in the four hdlc status registers that are not latched and these bits are listed in section 15.3.2. the user will always proceed a read of any of the nine registers with a write. the byte written to the register will inform the DS21352/552 which bits the user wishes to read and have cleared. the user will write a byte to one of these registers, with a one in the bit positions he or she wishes to read and a zero in the bit positions he or she does not wish to obtain the latest information on. when a one is written to a bit location, the read register will be updated with the latest information. when a zero is written to a bit position, the read register will not be updated and the previous value will be held. a write to the status and information registers will be immediately followed by a read of the same register. the read result should be logically and?ed with the mask byte th at was just written and th is value should be written back into the same register to insure that bit doe s indeed clear. this second write step is necessary because the alarms and events in the status regist ers occur asynchronously in respect to their access via the parallel port. this write?read? write scheme allows an external microcontroller or microprocessor to individually poll certain bits without disturbing the other bits in the register. this operation is key in controlling the DS21352/552 with higher?order software languages. the sr1, sr2, and hsr registers have the unique abilit y to initiate a hardware interrupt via the int output pin. each of the alarms and events in the sr1, sr2, and hsr can be e ither masked or unmasked from the interrupt pin via the interrupt mask register 1 (imr1), interrupt mask register 2 (imr2), and hdlc interrupt mask register (himr) respectivel y. the himr register is covered in section 15.3.2. the interrupts caused by alarms in sr1 (namely ryel, lrcl, rbl, and rlos) act differently than the interrupts caused by events in sr1 and sr2 (namely lup, ldn, lotc, rslip, rmf, tmf, sec, rfdl, tfdl, rmtch, raf, and rsc) and himr. the alarm caused interrupts will force the int pin low whenever the alarm changes state (i.e., the alarm goes active or inactive according to the set/clear criteria in table 7-2). the int pin will be allowed to return high (if no other interrupts are present) when the user reads the alarm bit that caused the interrupt to occur even if the alarm is still present. the event caused interrupts will force the int pin low when the event occurs. the int pin will be allowed to return high (if no other interrupts are present) when the user reads the event bit that caused the interrupt to occur.
DS21352/ds21552 44 of 137 rir1: receive information register 1 (address=22 hex) (msb) (lsb) cofa 8zd 16zd resf rese sefe b8zs fbe symbol position name and description cofa rir1.7 change of frame alignment. set when the last resync resulted in a change of frame or multiframe alignment. 8zd rir1.6 eight zero detect. set when a string of at least eight consecutive zeros (regardless of the length of the string) have been received at rposi and rnegi. 16zd rir1.5 sixteen zero detect. set when a string of at least sixteen consecutive zeros (regardless of the length of the string) have been received at rposi and rnegi. resf rir1.4 receive elastic store full. set when the receive elastic store buffer fills and a frame is deleted. rese rir1.3 receive elastic store empty. set when the receive elastic store buffer empties and a frame is repeated. sefe rir1.2 severely errored framing event. set when 2 out of 6 framing bits (ft or fps) are received in error. b8zs rir1.1 b8zs code word detect. set when a b8zs code word is detected at rposi and rnegi independent of whether the b8zs mode is selected or not via ccr2.6. useful for automatically setting the line coding. fbe rir1.0 frame bit error. set when a ft (d4) or fps (esf) framing bit is received in error. rir2: receive information register 2 (address=31 hex) (msb) (lsb) rlosc lrclc tesf tese tslip rblc rpdv tpdv symbol position name and description rlosc rir2.7 receive loss of sync clear. set when the framer achieves synchronization; will remain set until read. lrclc rir2.6 line interface receive carrier loss clear. set when the carrier signal is restored; will remain set until read. see table 7-2. tesf rir2.5 transmit elastic store full. set when the transmit elastic store buffer fills and a frame is deleted. tese rir2.4 transmit elastic store empty. set when the transmit elastic store buffer empties and a frame is repeated. tslip rir2.3 transmit elastic st ore slip occurrence. set when the transmit elastic store has either repeated or deleted a frame. rblc rir2.2 receive blue alarm clear. set when the blue alarm (ais) is no longer detected; will remain set until read. see table 7-2. rpdv rir2.1 receive pulse density violation. set when the receive data stream does not meet the ansi t1.403 requirements for pulse density. tpdv rir2.0 transmit pulse density violation. set when the transmit data stream does not meet the ansi t1.403 requirements for pulse density. rir3: receive information register 3 (address=10 hex) (msb) (lsb) rl1 rl0 jalt lorc frcl ? ? ? symbol position name and description rl1 rir3.7 receive level bit 1. seetable 7-1. rl0 rir3.6 receive level bit 0. see table 7-1. jalt rir3.5 jitter attenuator limit trip. set when the jitter attenuator fifo reaches to within 4
DS21352/ds21552 45 of 137 bits of its limit; useful for debugging jitter attenuation operation. lorc rir3.4 loss of receive clock. set when the rclki pin has not transitioned for at least 2 us (4  s max). frcl rir3.3 framer receive carrier loss. set when 192 consecutive zeros have been received at the rposi and rnegi pins; allowed to be cleared when 14 or more ones out of 112 possible bit positions are received. ?rir3.2 not assigned. could be any value when read. ?rir3.1 not assigned. could be any value when read. ?rir3.0 not assigned. could be any value when read. table 7-1 receive t1 level indication rl1 rl0 typical level received 0 0 +2 db to ?7.5 db 0 1 ?7.5 db to ?15 db 1 0 ?15 db to ?22.5 db 1 1 less than ?22.5 db
DS21352/ds21552 46 of 137 sr1: status register 1 (address=20 hex) (msb) (lsb) lup ldn lotc rslip rbl ryel lrcl rlos symbol position name and description lup sr1.7 loop up code detected. set when the loop up code as defined in the rupcd register is being received. see section 16.5 for details. ldn sr1.6 loop down code detected. set when the loop down code as defined in the rdncd register is being received. see section 16.5 for details. lotc sr1.5 loss of transmit clock. set when the tclk pin has not transitioned for one channel time (or 5.2  s). will force the rlos/lotc pin high if enabled via ccr1.6. also will force transmit side formatter to switch to rclk if so enabled via tcr1.7. rslip sr1.4 receive elastic st ore slip occurrence. set when the receive elastic store has either repeated or deleted a frame. rbl sr1.3 receive blue alarm. set when an unframed all one?s code is received at rposi and rnegi. ryel sr1.2 receive yellow alarm. set when a yellow alarm is received at rposi and rnegi. lrcl sr1.1 line interface receive carrier loss. set when a red alarm is received at rtip and rring. rlos sr1.0 receive loss of sync. set when the device is not synchronized to the receive t1 stream.
DS21352/ds21552 47 of 137 table 7-2 alarm criteria alarm set criteria clear criteria blue alarm (ais) (see note 1 below) when over a 3 ms window, 5 or less zeros are received when over a 3 ms window, 6 or more zeros are received yellow alarm (rai) 1. d4 bit 2 mode(rcr2.2=0) 2. d4 12th f?bit mode (rcr2.2=1; this mode is also referred to as the ?japanese yellow alarm?) 3. esf mode when bit 2 of 256 consecutive channels is set to zero for at least 254 occurrences when the 12th framing bit is set to one for two consecutive occurrences when 16 consecutive patterns of 00ff appear in the fdl when bit 2 of 256 consecutive channels is set to zero for less than 254 occurrences when the 12th framing bit is set to zero for two consecutive occurrences when 14 or less patterns of 00ff hex out of 16 possible appear in the fdl red alarm (lrcl) (this alarm is also referred to as loss of signal) when 192 consecutive zeros are received when 14 or more ones out of 112 possible bit positions are received starting with the first one received notes: 1. the definition of blue alarm (or alarm indication signal) is an unframed all ones signal. blue alarm detectors should be able to operate properly in the presence of a 10e?3 error rate and they should not falsely trigger on a framed all ones signal. the blue alarm criteria in the DS21352/552 has been set to achieve this performance. it is recommended that the rbl bit be qualified with the rlos bit. 2. ansi specifications use a different nomenclature than the DS21352/552 does; the following terms are equivalent: rbl = ais rcl = los rlos = lof ryel = rai
DS21352/ds21552 48 of 137 sr2: status register 2 (address=21 hex) (msb) (lsb) rmf tmf sec rfdl tfdl rmtch raf rsc symbol position name and description rmf sr2.7 receive multiframe. set on receive multiframe boundaries. tmf sr2.6 transmit multiframe. set on transmit multiframe boundaries. sec sr2.5 one second timer. set on increments of one second based on rclk; will be set in increments of 999 ms, 999 ms, and 1002 ms every 3 seconds. rfdl sr2.4 receive fdl buffer full. set when the receive fdl buffer (rfdl) fills to capacity (8 bits). tfdl sr2.3 transmit fdl buffer empty. set when the transmit fdl buffer (tfdl) empties. rmtch sr2.2 receive fdl match occurrence. set when the rfdl matches either rfdlm1 or rfdlm2. raf sr2.1 receive fdl abort. set when eight consecutive one?s are received in the fdl. rsc sr2.0 receive signa ling change. set when the DS21352/552 detects a change of state in any of the robbed?bit signaling bits.
DS21352/ds21552 49 of 137 imr1: interrupt mask register 1 (address=7f hex) (msb) (lsb) lup ldn lotc slip rbl ryel lrcl rlos symbol position name and description lup imr1.7 loop up code detected. 0 = interrupt masked 1 = interrupt enabled ldn imr1.6 loop down code detected. 0 = interrupt masked 1 = interrupt enabled lotc imr1.5 loss of transmit clock. 0 = interrupt masked 1 = interrupt enabled slip imr1.4 elastic store slip occurrence. 0 = interrupt masked 1 = interrupt enabled rbl imr1.3 receive blue alarm. 0 = interrupt masked 1 = interrupt enabled ryel imr1.2 receive yellow alarm. 0 = interrupt masked 1 = interrupt enabled lrcl imr1.1 line interface receive carrier loss. 0 = interrupt masked 1 = interrupt enabled rlos imr1.0 receive loss of sync. 0 = interrupt masked 1 = interrupt enabled
DS21352/ds21552 50 of 137 imr2: interrupt mask register 2 (address=6f hex) (msb) (lsb) rmf tmf sec rfdl tfdl rmtch raf rsc symbol position name and description rmf imr2.7 receive multiframe. 0 = interrupt masked 1 = interrupt enabled tmf imr2.6 transmit multiframe. 0 = interrupt masked 1 = interrupt enabled sec imr2.5 one second timer. 0 = interrupt masked 1 = interrupt enabled rfdl imr2.4 receive fdl buffer full. 0 = interrupt masked 1 = interrupt enabled tfdl imr2.3 transmit fdl buffer empty. 0 = interrupt masked 1 = interrupt enabled rmtch imr2.2 receive fdl match occurrence. 0 = interrupt masked 1 = interrupt enabled raf imr2.1 receive fdl abort. 0 = interrupt masked 1 = interrupt enabled rsc imr2.0 receive signa ling change. 0 = interrupt masked 1 = interrupt enabled 8. error count registers there are a set of three counters that record bipolar violations, excessive zeros, errors in the crc6 code words, framing bit errors, and number of multiframes th at the device is out of receive synchronization. each of these three counters are automatically updated on either one second boundaries (ccr3.2=0) or every 42 ms (ccr3.2=1) as determined by the timer in status register 2 (sr2.5). hence, these registers contain performance data from eith er the previous second or the previous 42 ms. the user can use the interrupt from the one second timer to determine when to read these registers. the user has a full second (or 42 ms) to read the counters before the data is lo st. all three counters will sa turate at their respective maximum counts and they will not rollover (note: only the line code violation count register has the potential to over-flow but the bit error would have to exceed 10e-2 before this would occur).
DS21352/ds21552 51 of 137 8.1 line code violation count register (lcvcr) line code violation count register 1 (lcvcr1) is the most significant word and lcvcr2 is the least significant word of a 16?bit counter that records c ode violations (cvs). cv s are defined as bipolar violations (bpvs) or excessive zeros. see table 8-1 for details of exactly what the lcvcrs count. if the b8zs mode is set for the receive side via ccr2.2, then b8zs code words are not counted. this counter is always enabled; it is not disabled during recei ve loss of synchronization (rlos=1) conditions. lcvcr1: line code violation co unt register 1 (address = 23 hex) lcvcr2: line code violation co unt register 2 (address = 24 hex) (msb) (lsb) lcv15 lcv14 lcv13 lcv12 lcv11 lcv10 lcv9 lcv8 lcvcr1 lcv7 lcv6 lcv5 lcv4 lcv3 lcv2 lcv1 lcv0 lcvcr2 symbol position name and description lcv15 lcvcr1.7 msb of the 16?bit code violation count lcv0 lcvcr2.0 lsb of the 16?bit code violation count table 8-1 line code violation counting arrangements count excessive zeros (rcr1.7) b8zs enabled (ccr2.2) what is counted in the lcvcrs no no bpvs yes no bpvs + 16 consecutive zeros no yes bpvs (b8zs code words not counted) yes yes bpv?s + 8 consecutive zeros
DS21352/ds21552 52 of 137 8.2 path code violation count register (pcvcr) when the receive side of a framer is set to opera te in the esf framing m ode (ccr2.3=1) , pcvcr will automatically be set as a 12?bit counter that will record errors in the crc6 code words. when set to operate in the d4 framing mode ( ccr2.3=0), pcvcr will automatically c ount errors in the ft framing bit position. via the rcr2.1 bit, a framer can be programmed to also report errors in the fs framing bit position. the pcvcr will be disabled during receiv e loss of synchronization (rlos=1) conditions. see table 8-2 for a detailed description of exactly what errors the pcvcr counts. pcvcr1: path violation count register 1 (address = 25 hex) pcvcr2: path violation count register 2 (address = 26 hex) (msb) (lsb) (note 1) (note 1) (note 1) (note 1) crc/fb11 crc/fb10 crc/fb9 crc/fb8 pcvcr1 crc/fb7 crc/fb6 crc/fb5 crc/fb4 crc/fb3 crc/fb2 crc/fb1 crc/fb0 pcvcr2 symbol position name and description crc/fb11 pcvcr1.3 msb of the 12?bit crc6 error or frame bit error count (note #2) crc/fb0 pcvcr2.0 lsb of the 12?bit crc6 error or frame bit error count (note #2) notes: 1. the upper nibble of the counter at address 25 is used by the multiframes out of sync count register 2. pcvcr counts either errors in crc code words (in the esf framing mode; ccr2.3=1) or errors in the framing bit position (in the d4 framing mode; ccr2.3=0). table 8.2 path code violation counting arrangements framing mode (ccr2.3) count fs errors (rcr2.1) what is counted in the pcvcrs d4 no errors in the ft pattern d4 yes errors in both the ft & fs patterns esf don?t care errors in the crc6 code words
DS21352/ds21552 53 of 137 8.3 multiframes out of sync count register (moscr) normally the moscr is used to count the number of multiframes that the receive synchronizer is out of sync (rcr2.0=1). this number is usef ul in esf applications needing to measure the parameters loss of frame count (lofc) and esf error events as described in at&t publication tr54016. when the moscr is operated in this mode, it is not disabl ed during receive loss of synchronization (rlos=1) conditions. the moscr has alternat e operating mode whereby it will count either errors in the ft framing pattern (in the d4 mode) or errors in the fps framing pattern (in the esf mode). when the moscr is operated in this mode, it is disabled during receive loss of synchronization (rlos = 1) conditions. see table 8-3 for a detailed descripti on of what the moscr is capable of counting. moscr1: multiframes out of sync count register 1 (address = 25 hex) see note 1 moscr2: multiframes out of sync count register 2 (address = 27 hex) (msb) (lsb) mos/fb1 1 mos/fb1 0 mos/fb9 mos/fb8 (note 1) (note 1) (note 1) (note 1) moscr1 crc/fb7 crc/fb6 crc/fb5 crc/fb4 crc/fb3 crc/fb2 crc/fb1 crc/fb0 moscr2 symbol position name and description mos/fb11 moscr1.7 msb of the 12?bit multiframes out of sync or f?bit error count (note #2) mos/fb0 moscr2.0 lsb of the 12?bit multiframes out of sync or f?bit error count (note #2) notes: 1. the lower nibble of the counter at address 25 is used by the path code violation count register 2. moscr counts either errors in framing bit position (rcr2.0=0) or the number of multiframes out of sync (rcr2.0=1) table 8-3 multiframes out of sync counting arrangements framing mode (ccr2.3) count mos or f?bit errors (rcr2.0) what is counted in the moscrs d4 mos number of multiframes out of sync d4 f?bit errors in the ft pattern esf mos number of multiframes out of sync esf f?bit errors in the fps pattern
DS21352/ds21552 54 of 137 9. ds0 monitoring function the device has the ability to monitor one ds0 64kbps channel in the transmit direction and one ds0 channel in the receive direction at the same time. in the transmit direction the user will determine which channel is to be monitored by properly setting the tcm0 to tcm4 bits in the ccr5 register. in the receive direction, the rcm0 to rcm4 bits in the ccr6 re gister need to be properly set. the ds0 channel pointed to by the tcm0 to tcm4 bits will appear in the transmit ds0 monitor (tds0m) register and the ds0 channel pointed to by the rcm0 to rcm4 bits will appear in the receive ds0 (rds0m) register. the tcm4 to tcm0 and rcm4 to rcm0 b its should be programmed with the decimal decode of the appropriate t1 channel. for example, if ds0 channel 6 in the transmit direction and ds0 channel 15 in the receive direction needed to be monitored, then the following values would be programmed into ccr5 and ccr6: tcm4 = 0 rcm4 = 0 tcm3 = 0 rcm3 = 1 tcm2 = 1 rcm2 = 1 tcm1 = 0 rcm1 = 1 tcm0 = 1 rcm0 = 0 ccr5: common control register 5 (address=19 hex) [repeated here from section 6 for convenience] (msb) (lsb) tjc llb liais tcm4 tcm3 tcm2 tcm1 tcm0 symbol position name and description tjc ccr5.7 transmit japanese crc6 enable. llb ccr5.6 local loopback . liais ccr5.5 line interface ais generation enable. tcm4 ccr5.4 transmit channel monitor bit 4. msb of a channel decode that determines which transmit channel data will appear in the tds0m register. see section 0 for details. tcm3 ccr5.3 transmit channel monitor bit 3. tcm2 ccr5.2 transmit channel monitor bit 2. tcm1 ccr5.1 transmit channel monitor bit 1. tcm0 ccr5.0 transmit channel monitor bit 0. lsb of the channel decode.
DS21352/ds21552 55 of 137 tds0m: transmit ds0 monito r register (address=1a hex) (msb) (lsb) b1 b2 b3 b4 b5 b6 b7 b8 symbol position name and description b1 tds0m.7 transmit ds0 channel bit 1. msb of the ds0 channel (first bit to be transmitted). b2 tds0m.6 transmit ds0 channel bit 2. b3 tds0m.5 transmit ds0 channel bit 3. b4 tds0m.4 transmit ds0 channel bit 4. b5 tds0m.3 transmit ds0 channel bit 5. b6 tds0m.2 transmit ds0 channel bit 6. b7 tds0m.1 transmit ds0 channel bit 7. b8 tds0m.0 transmit ds0 channel bit 8. lsb of the ds0 channel (last bit to be transmitted). ccr6: common control register 6 (address=1e hex) [repeated here from section 6 for convenience] (msb) (lsb) rjc resa tesa rcm4 rcm3 rcm2 rcm1 rcm0 symbol position name and description rjc ccr6.7 receive japanese crc enable. resa ccr6.6 receive elastic store align. tesa ccr6.5 transmit elastic store align. rcm4 ccr6.4 receive channel monitor bit 4. msb of a channel decode that determines which receive ds0 channel data will appear in the rds0m register. rcm3 ccr6.3 receive channel monitor bit 3. rcm2 ccr6.2 receive channel monitor bit 2. rcm1 ccr6.1 receive channel monitor bit 1 . rcm0 ccr6.0 receive channel monitor bit 0. lsb of the channel decode that determines which receive ds0 channel data will appear in the rds0m register. rds0m: receive ds0 monitor register (address=1f hex ) (msb) (lsb) b1 b2 b3 b4 b5 b6 b7 b8 symbol position name and description b1 rds0m.7 receive ds0 channel bit 1. msb of the ds0 channel (first bit to be received). b2 rds0m.6 receive ds0 channel bit 2. b3 rds0m.5 receive ds0 channel bit 3. b4 rds0m.4 receive ds0 channel bit 4.
DS21352/ds21552 56 of 137 b5 rds0m.3 receive ds0 channel bit 5. b6 rds0m.2 receive ds0 channel bit 6. b7 rds0m.1 receive ds0 channel bit 7. b8 rds0m.0 receive ds0 channel bit 8. lsb of the ds0 channel (last bit to be received). 10. signaling operation processor based (i.e., software based) signaling access and hard ware based access are available. processor based access and hardware based access can be used simultaneously if necessary. the processor based signaling is cove red in section 10-1 and the hardwa re based signaling is covered in section 10-2. 10.1 processor based signaling the robbed?bit signaling bits embedded in the t1 stre am can be extracted from the receive stream and inserted into the transmit stream by each framer. there is a set of 12 registers for the receive side (rs1 to rs12) and 12 registers on the transmit side (ts1 to ts12). the signaling registers are detailed below. the ccr1.5 bit is used to control the robbed signaling bits as they appear at rser. if ccr1.5 is set to zero, then the robbed signaling bits will appear at the rser pin in their proper position as they are received. if ccr1.5 is set to a one, then the robbed signaling bit positions will be forced to a one at rser. if hardware based sign aling is being used, then ccr1.5 must be set to zero.
DS21352/ds21552 57 of 137 rs1 to rs12: receive signaling registers (address=60 to 6b hex) (msb) (lsb) a(8) a(7) a(6) a(5) a(4) a(3) a(2) a(1) rs1 (60) a(16) a(15) a(14) a(13) a(12) a(11) a(10) a(9) rs2 (61) a(24) a(23) a(22) a(21) a(20) a(19) a(18) a(17) rs3 (62) b(8) b(7) b(6) b(5) b(4) b(3) b(2) b(1) rs4 (63) b(16) b(15) b(14) b(13) b(12) b(11) b(10) b(9) rs5 (64) b(24) b(23) b(22) b(21) b(20) b(19) b(18) b(17) rs6 (65) a/c(8) a/c(7) a/c(6) a/c(5) a/c(4) a/c(3) a/c(2) a/c(1) rs7 (66) a/c(16) a/c(15) a/c(14) a/c(13) a/c(12) a/c(11) a/c(10) a/c(9) rs8 (67) a/c(24) a/c(23) a/c(22) a/c(21) a/c(20) a/c(19) a/c(18) a/c(17) rs9 (68) b/d(8) b/d(7) b/d(6) b/d(5) b/d(4) b/d(3) b/d(2) b/d(1) rs10 (69) b/d(16) b/d(15) b/d(14) b/d(13) b/d(12) b/d(11) b/d(10) b/d(9) rs11 (6a) b/d(24) b/d(23) b/d(22) b/d(21) b/d(20) b/d(19) b/d(18) b/d(17) rs12 (6b) symbol position name and description d(24) rs12.7 signaling bit d in channel 24 a(1) rs1.0 signaling bit a in channel 1 each receive signaling register (rs1 to rs12) reports the incoming robbed bit signaling from eight ds0 channels. in the esf framing mode, there can be up to four signaling bits per channel (a, b, c, and d). in the d4 framing mode, there are only two signaling bits per channel (a and b). in the d4 framing mode, the framer will replace the c and d signaling bit positions with the a and b signaling bits from the previous multiframe. hence, whether the framer is ope rated in either framing mode, the user needs only to retrieve the signaling bits every 3 ms. the b its in the receive signaling registers are updated on multiframe boundaries so the user can utilize the r eceive multiframe interrupt in the receive status register 2 (sr2.7) to know when to retrieve the signaling bits. the receive signaling registers are frozen and not updated during a loss of sync condition (sr1.0=1). they will contain the most recent signaling information before the ?oof? occurred. the signaling data reported in rs1 to rs12 is also available at the rsig and rser pins. a change in the signaling bits from one multiframe to the next will cause the rsc status bit (sr2.0) to be set. the user can enable the int pin to toggle low upon detection of a change in signaling by setting the imr2.0 bit. once a signaling change has been detecte d, the user has at least 2.75 ms to read the data out of the rs1 to rs12 registers before the data will be lost.
DS21352/ds21552 58 of 137 ts1 to ts12: transmit signaling registers (address=70 to 7b hex ) (msb) (lsb) a(8) a(7) a(6) a(5) a(4) a(3) a(2) a(1) ts1 (70) a(16) a(15) a(14) a(13) a(12) a(11) a(10) a(9) ts2 (71) a(24) a(23) a(22) a(21) a(20) a(19) a(18) a(17) ts3 (72) b(8) b(7) b(6) b(5) b(4) b(3) b(2) b(1) ts4 (73) b(16) b(15) b(14) b(13) b(12) b(11) b(10) b(9) ts5 (74) b(24) b(23) b(22) b(21) b(20) b(19) b(18) b(17) ts7 (75) a/c(8) a/c(7) a/c(6) a/c(5) a/c(4) a/c(3) a/c(2) a/c(1) ts7 (76) a/c(16) a/c(15) a/c(14) a/c(13) a/c(12) a/c(11) a/c(10) a/c(9) ts8 (77) a/c(24) a/c(23) a/c(22) a/c(21) a/c(20) a/c(19) a/c(18) a/c(17) ts9 (78) b/d(8) b/d(7) b/d(6) b/d(5) b/d(4) b/d(3) b/d(2) b/d(1) ts10 (79) b/d(16) b/d(15) b/d(14) b/d(13) b/d(12) b/d(11) b/d(10) b/d(9) ts11 (7a) b/d(24) b/d(23) b/d(22) b/d(21) b/d(20) b/d(19) b/d(18) b/d(17) ts12 (7b) symbol position name and description d(24) ts12.7 signaling bit d in channel 24 a(1) ts1.0 signaling bit a in channel 1 each transmit signaling register (ts1 to ts12) contains the robbed bit signaling for eight ds0 channels that will be inserted into the outgoing str eam if enabled to do so via tcr1.4. in the esf framing mode, there can be up to four signaling bits per ch annel (a, b, c, and d). on multiframe boundaries, the framer will load the values present in the transmit signaling register into an outgoing signaling shift register that is internal to the device. the user can utilize the transmit multiframe interrupt in status register 2 (sr2.6) to know when to update the signa ling bits. in the esf framing mode, the interrupt will come every 3 ms and the user has a full 3ms to upda te the tsrs. in the d4 framing mode, there are only two signaling bits per channel (a and b). however in the d4 framing mode, the framer uses the c and d bit positions as the a and b bit positions for the next multiframe. the framer will load the values in the tsrs into the outgoing shift register every other d4 multiframe. 10.2 hardware based signaling 10.2.1 receive side in the receive side of the hardware based signaling, there are two operating modes for the signaling buffer; signaling extraction and si gnaling re?insertion. signaling extr action involves pulling the signaling bits from the receive data stream and buffering them over a four multiframe buffer and outputting them in a serial pcm fashion on a channel?by ?channel basis at the rsig output. this mode is always enabled. in this mode, the receive elastic store may be enabled or disabled. if the receive elastic store is enabled, then the backplane clock (rsysclk) can be either 1.544 mhz or 2.048 mhz. in the esf framing mode, the abcd signaling bits are output on rsig in the lower nibble of each channel. the rsig data is updated once a multiframe (3 ms) unless a freeze is in effect. in the d4 framing mode, the ab signaling bits are output twice on rsig in the lower nibble of each cha nnel. hence, bits 5 and 6 contain the same data as bits 7 and 8 respectively in each channel. the rs ig data is updated once a multiframe (1.5 ms) unless a freeze is in effect. see the timing diagrams in section 21 for some examples. 10.2.1.1 receive si gnaling re-insertion the other hardware based signaling operating mode called signaling re?insertion can be invoked by setting the rsre control bit high (ccr4.7=1). in this mode, the user will provide a multiframe sync at the rsync pin and the signaling data will be re?aligned at the rser output according to this applied
DS21352/ds21552 59 of 137 multiframe boundary. in this mode, the elastic store must be enabled however the backplane clock can be either 1.544 mhz or 2.048 mhz. if the signaling re?insertion mode is enabled, the us er can control which cha nnels have signaling re? insertion performed on a channel?by?channel basis by setting the rpcsi control bit high (ccr4.6) and then programming the rchblk output pin to go high in the channels in which the signaling re?insertion should not occur. if the rpcsi bit is set low, then signaling re?insertion will occur in all channels when the signaling re?insertion mode is enabled (rsr e=1). how to control the operation of the rchblk output pin is covered in section 13. 10.2.1.2 receive signaling all ones in both hardware based signaling operating modes, the user has the option to replace all of the extracted robbed?bit signaling bit positions with ones. this op tion is enabled via the rfsa1 control bit (ccr4.5) and it can be invoked on a per?channel basis by setting the rpcsi control bit (ccr4.6) high and then programming rchblk appropriately just like the per?channel signaling re?insertion operates. 10.2.1.3 receive signaling freeze the signaling data in the four multiframe buffer w ill be frozen in a known good state upon either a loss of synchronization (oof event), carrier loss, or frame slip. this action meets the requirements of bellcore tr? tsy?000170 for signaling freezing. to allow this freeze action to occur, the rfe control bit (ccr4.4) should be set high. the user can force a fr eeze by setting the rff control bit (ccr4.3) high. the rsigf output pin provides a hardware indication that a freeze is in effect. the four multiframe buffer provides a three multiframe delay in the signaling bits provided at the rsig pin (and at the rser pin if rsre=1). when freezing is enabled (rfe=1), the signaling data will be held in the last known good state until the corrupting error condition subsides . when the error condition subsides, the signaling data will be held in the old state for at least an additional 9 ms (or 4.5 ms in d4 framing mode) before being allowed to be updated with new signaling data. 10.2.2 transmit side via the thse control bit (ccr4.2), the framer can be se t up to take the signaling data presented at the tsig pin and insert the signaling data into the pcm da ta stream that is being input at the tser pin. the user has the ability to control which channels are to have signaling data from the tsig pin inserted into them on a channel?by?channel basis by setting the tpcsi control bit (ccr4.1) high. when tpcsi is enabled, channels in which the tchblk output has been programmed to be set high in, will not have signaling data from the tsig pin inserted into them. the signaling insertion capabilities of the framer are available whether the transmit side elastic store is enabled or disabled. if the elastic store is enabled, the backplane clock (tsysclk) can be either 1.544 mhz or 2.048 mhz. 11. per?channel code (idle) generation data can be replaced by an idle code on a channel?by?channel basis in the transmit and receive directions. the transmit direction is from the backpl ane to the t1 line and is covered in section11.1. the receive direction is from the t1 line to th e backplane and is covered in section 11.2.
DS21352/ds21552 60 of 137 11.1 transmit side code generation in the transmit direction there are two methods by which channel data from the backplane can be overwritten with data generated by the framer. the first met hod which is covered in section 11.1 was a feature contained in the original ds2151 while the second method which is cove red in section 11.2 is a new feature of the ds2152/352/552. 11.1.1 fixed per-channe l idle code insertion the first method involves using the transmit idle regi sters (tir1/2/3) to determine which of the 24 t1 channels should be overwritten with the code placed in the transmit idle definition register (tidr). this method allows the same 8?bit c ode to be placed into any of the 24 t1 channels. if this method is used, then the ccr4.0 control bit must be set to zero. each of the bit position in the transmit idle registers (tir1/tir2/tir3) represent a ds0 channel in the outgoing frame. when these bits are set to a one, the corresponding channel will transmit the idle code contained in the transmit idle definition register (tidr). robbed bit signaling and bit 7 stuffing will occur over the programmed idle code unless the ds0 channel is made transparent by the transmit transparency registers. tir1/tir2/tir3: transmit idle registers (address=3c to 3e hex ) [also used for per?channel loopback] (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 tir1 (3c) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 tir2 (3d) ch24 ch23 ch22 ch21 ch20 ch 19 ch18 ch17 tir3 (3e) symbols positions name and description ch1-24 tir1.0-3.7 transmit idle code insertion control bits. 0 = do not insert the idle code in the tidr into this channel 1 = insert the idle code in the tidr into this channel note: if ccr4.0=1, then a zero in the tirs implies that ch annel data is to be sourced from tser and a one implies that channel data is to be sourced from the output of the receive side framer (i.e., per?channel loopback; see figure 3-1. tidr: transmit idle definiti on register (address=3f hex) (msb) (lsb) tidr7 tidr6 tidr5 tidr4 tidr3 tidr2 tidr1 tidr0 symbol position name and description tidr7 tidr.7 msb of the idle code (this bit is transmitted first) tidr0 tidr.0 lsb of the idle code (this bit is transmitted last) 11.1.2 unique per-channel idle code insertion the second method involves using the transmit channel control registers (tcc1/2/3) to determine which of the 24 t1 channels should be overwritten with the code placed in the transmit channel registers (tc1 to tc24). this method is more flexible than the first in that it allows a different 8?bit code to be placed into each of the 24 t1 channels.
DS21352/ds21552 61 of 137 tc1 to tc24: transmit channel registers (address=50 to 57 and 40 to 4f hex) (for brevity, only channel one is shown; see table 5-1 for other register address) (msb) (lsb) c7 c6 c5 c4 c3 c2 c1 c0 tc1 (50) symbol position name and description c7 tc1.7 msb of the code (this bit is transmitted first) c0 tc1.0 lsb of the code (this bit is transmitted last) tcc1/tcc2/tcc3: transmit channe l control register (address=16 to 18 hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 tcc1 (16) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 tcc2 (17) ch24 ch23 ch22 ch21 ch20 ch 19 ch18 ch17 tcc3 (18) symbol position name and description ch24 tcc3.7 transmit channel 24 code insertion control bit 0=do not insert data from the tc24 register into the transmit data stream 1 = insert data from the tc24 register into the transmit data stream ch1 tcc1.0 transmit channel 1 code insertion control bit 0=do not insert data from the tc1 register into the transmit data stream 1 = insert data from the tc1 register into the transmit data stream 11.2 receive side code generation in the receive direction there are also two methods by which channel data to the backplane can be overwritten with data generated by the framer. the first met hod which is covered in section 11.2.1 was a feature contained in the original ds2151 while the second method which is covered in section 11.2.2 is a new feature of the ds2152/352/552.
DS21352/ds21552 62 of 137 11.2.1 fixed per-channe l idle code insertion the first method on the receive side involves using th e receive mark registers (rmr1/2/3) to determine which of the 24 t1 channels should be overwritten with either a 7fh id le code or with a digital milliwatt pattern. the rcr2.7 bit will de termine which code is used. the di gital milliwatt code is an eight byte repeating pattern that represents a 1 khz sine wave (1e/0b/0b/1e/9e/8b/8b/9e). each bit in the rmrs, represents a particular channel. if a bit is set to a one, then the receive data in that channel will be replaced with one of the two codes. if a bit is set to zero, no replacement occurs. rmr1/rmr2/rmr3: receive mark re gisters (address=2d to 2f hex ) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rmr1(2d) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 rmr2(2e) ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 rmr3(2f) symbols positions name and description ch1-24 rmr1.0-3.7 receive channel mark control bits 0 =do not affect the receive data associated with this channel 1 = replace the receive data associated with this channel with idle code or digital milliwatt code (depends on the rcr2.7 bit) 11.2.2 unique per-channel code insertion the second method involves using the receive channel control registers (rcc1/2/3) to determine which of the 24 t1 channels off of the t1 line and going to the backplane should be overwritten with the code placed in the receive channel registers (rc1 to rc24). this method is more flexible than the first in that it allows a different 8?bit code to be placed into each of the 24 t1 channels. rc1 to rc24: receive channel regi sters (address=80 to 8f and 58 to 5f hex) (for brevity, only channel one is shown; see table 5-1 for other register address) (msb) (lsb) c7 c6 c5 c4 c3 c2 c1 c0 rc1 (80) symbol position name and description c7 rc1.7 msb of the code (this bit is sent first to the backplane) c0 rc1.0 lsb of the code (this bit is sent last to the backplane)
DS21352/ds21552 63 of 137 rcc1/rcc2/rcc3: receive ch annel control register (address=1b to 1d hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rcc1 (1b) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 rcc2 (1c) ch24 ch23 ch22 ch21 ch20 ch 19 ch18 ch17 rcc3 (1d) symbol position name and description ch24 rcc3.7 receive channel 24 code insertion control bit 0 = do not insert data from the rc24 register into the receive data stream 1 = insert data from the rc24 register into the receive data stream ch1 rcc1.0 receive channel 1 code insertion control bit 0 = do not insert data from the rc1 register into the receive data stream 1 = insert data from the rc1 register into the receive data stream 12. per?channel loopback the transmit idle registers (tirs) have an alternate function that allows them to define a per?channel loopback (pclb). if the tirfs control bit (ccr4.0) is set to one, then the tirs will determine which channels (if any) from the backplan e should be replaced with the data from the receive side or in other words, off of the t1 line. if this mode is enable d, then transmit and receive clocks and frame syncs must be synchronized. one method to accomplish this w ould be to tie rclk to tclk and rfsync to tsync. 13. clock blocking registers the receive channel blocking registers (rcbr1/rcbr2/rcbr3) and the transmit channel blocking registers (tcbr1/tcbr2/tcbr3) control the rchblk and tchblk pins respectively. the rchblk and tchclk pins are user programmable outputs that can be forced either high or low during individual channels. these outputs can be used to block clocks to a uart or lapd controller in fractional t1 or isdn?pri applications. when the appropriate bits are set to a one, the rchblk and tchclk pins will be held high during the entire corresponding channel time. see the timing in section 21 for an example. rcbr1/rcbr2/rcbr3: receive chan nel blocking registers (address=6c to 6e hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rcbr1 (6c) ch16 ch15 ch14 ch13 ch12 ch 11 ch10 ch9 rcbr2 (6d) ch24 ch23 ch22 ch21 ch20 ch 19 ch18 ch17 rcbr3 (6e) symbols positions name and description ch1-24 rcbr1.0-3.7 receive channel bloc king control bits. 0 = force the rchblk pin to remain low during this channel time 1 = force the rchblk pin high during this channel time tcbr1/tcbr2/tcbr3: transmit channel blocking registers (address=32 to 34 hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 tcbr1 (32) ch16 ch15 ch14 ch13 ch12 ch 11 ch10 ch9 tcbr2 (33) ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 tcbr3 (34) symbols positions name and description ch1-24 tcbr1.0-3.7 transmit channel blocking control bits.
DS21352/ds21552 64 of 137 0 = force the tchblk pin to remain low during this channel time 1 = force the tchblk pin high during this channel time 14. elastic stores operation the device contains dual two?frame ( 386 bits) elastic stores, one for the receive direction, and one for the transmit direction. these elastic stores have two main purposes. first, they can be used to rate convert the t1 data stream to 2.048 mbps (or a multiple of 2.048 m bps) which is the e1 rate. secondly, they can be used to absorb the differences in frequency and pha se between the t1 data stream and an asynchronous (i.e., not locked) backplane cl ock (which can be 1.544 mhz or 2.048 mhz). the backplane clock (tsysclk and/or rsysclk) can burst at rates up to 8.192 mhz. both elastic stores contain full controlled slip capability which is necessary for this second purpose. the receive side elastic store can be enabled via ccr1.2 and the transmit side elastic store is enabled via ccr1.7. both elastic stores are fully independent and no restricti ons apply to the sourcing of the various clocks that are applied to them. the transmit side elastic store can be enabled whether the receive elastic store is enabled or disabled and vice versa. also, each elastic store can interface to either a 1.544 mhz or 2.048 mhz backplane without regard to the backplane rate the other elastic store is interfacing. 14.1 receive side if the receive side elastic store is enabled (ccr 1.2=1), then the user must provide either a 1.544 mhz (ccr1.3=0) or 2.048 mhz (ccr1.3=1) clock at the rsysclk pin. the user has the option of either providing a frame/multiframe sync at the rsync pi n (rcr2.3=1) or having th e rsync pin provide a pulse on frame boundaries (rcr2.3=0). if the user wishes to obtain pulses at the frame boundary, then rcr2.4 must be set to zero and if the user wishes to have pulses occur at the multiframe boundary, then rcr2.4 must be set to one. the framer will always indicate frame boundarie s via the rfsync output whether the elastic store is enable d or not. if the elastic store is enabled, then multiframe boundaries will be indicated via the rms ync output. if the user selects to apply a 2.048 mhz clock to the rsysclk pin, then the data output at rser will be forced to all ones every fourth channel and the f?bit will be passed into the msb of ts0. hence channels 1(b its 1-7), 5, 9, 13, 17, 21, 25, a nd 29 (timeslots 0(bits 1- 7), 4, 8, 12, 16, 20, 24, and 28) will be forced to a one . also, in 2.048 mhz applications, the rchblk output will be forced high during the same channels as the rser pin. see section 13 for more details. this is useful in t1 to cept (e1) conversion a pplications. if the 386?bit elas tic buffer either fills or empties, a controlled slip will occur. if the buffer empties, then a full frame of data (193 bits) will be repeated at rser and the sr1.4 and rir1.3 bits will be set to a one. if the buffer fills, then a full frame of data will be de leted and the sr1.4 and rir1.4 bits will be set to a one.
DS21352/ds21552 65 of 137 14.2 transmit side the operation of the transmit elastic store is very similar to the receive side. the transmit side elastic store is enabled via ccr1.7. a 1.544 mhz (ccr1.4=0) or 2.048 mhz (ccr1.4=1) clock can be applied to the tsysclk input. if the user selects to appl y a 2.048 mhz clock to the tsysclk pin, then the data input at tser will be ignored every fourth channel. hence channels 1, 5, 9, 13, 17, 21, 25, and 29 (timeslots 0, 4, 8, 12, 16, 20, 24, and 28) will be ignored. the user must supply an 8 khz frame sync pulse to the tssync input. also, in 2.048 mhz app lications, the tchblk output will be forced high during the channels ignored by the framer. see section 21 for more details. controlled slips in the transmit elastic store are reported in the rir2.3 bit a nd the direction of the slip is reported in the rir2.5 and rir2.4 bits. 14.3 elastic stor es initialization there are two elastic store initializations that may be used to improve performance in certain applications, elastic store reset and elastic store align. both of these involve the manipulation of the elastic store?s read and write point ers and are useful primarily in sy nchronous applications (rsysclk / tsysclk are locked to rclk / tclk respectively). see table below for details. table 14-1 elastic store delay after initialization initialization register. bit delay receive elastic store reset transmit elastic store reset ccr7.5 ccr7.4 8 clocks < delay < 1 frame 1 frame < delay < 2 frames receive elastic store align transmit elastic store align ccr6.6 ccr6.5 ? frame < delay < 1 ? frames ? frame < delay < 1 ? frames 14.4 minimum delay mode elastic store minimum delay mode may be used when the elastic store?s system clock is locked to its network clock (i.e., rclk locked to rsysclk for the receive side and tclk locked to tsysclk for the transmit side). ccr3.7 and ccr3.0 enable the transmit and receive elastic store minimum delay modes. when enabled the elastic stores will be forced to a maximum depth of 32 bits instead of the normal 386 bits. this feature is useful primarily in applications that interface to a 2.048mhz bus. certain restrictions apply when minimum delay mode is used. in addition to the restriction mentioned above, rsync must be configured as an output when the receive elastic store is in minimum delay mode and tsync must be configured as an output when transmit minimum delay mode is enabled. in a typical application rsysclk and tsysclk are lock ed to rclk, and rsync (frame output mode) is connected to tssync (fram e input mode). all of the slip conten tion logic in the framer is disabled (since slips cannot occur). on power?up after the rs ysclk and tsysclk signals have locked to their respective network clock signals, the elastic store reset bits (ccr7.4 and ccr7.5) should be toggled from a zero to a one to insure proper operation. table 14-2 minimum delay mode configuration hardware requirements register settings transmit tsysclk can be 1.544mhz or 2.048mhz and must be locked to tclk (1.544mhz). tsync is an output ccr3.0 = 1, ccr1.7 = 1 tcr2.2 = 1 receive rsysclk can be 1.544mhz or 2.048mhz and must be locked to rclk (1.544mhz). rsync is an output. ccr3.7 = 1, ccr1.2 = 1 rcr2.3 = 0 15. hdlc controller this device has an enhanced hdlc controller configurable for use with the facilities data link or ds0s. there are 64 byte buffers in the transmit and receive paths. the user can select any ds0 or multiple ds0s as well as any specific bits within the ds0(s) to pass through the hdlc controller. note that
DS21352/ds21552 66 of 137 tboc.6 = 1 and tdc1.7 = 1 cannot exist without corrup ting the data in the fdl. see table 15-1 for configuring the transmit hdlc controller. table 15-1 transmit hdlc configuration function tboc.6 tdc1.7 tcr1.2 ds0(s) 0 1 1 or 0 fdl 1 0 1 disable 0 0 1 or 0 note that the boc controller is functional when the hdlc controller is used for ds0s. section 15.3 contains all of the hdlc and boc registers and information on fdl/fs extraction and insertion with and without the hdlc controller. 15.1 hdlc forr ds0s when using the hdlc controllers for ds0s, the same registers shown in section 15.3.2 will be used except for the tboc and rboc registers and bits hdlc.7, hsr.7, and himr.7. as a basic guideline for interpreting and sending hdlc messages and boc messages, the following sequences can be applied. 15.1.1 receive an hdlc message 1. enable rps interrupts. 2. wait for interrupt to occur. 3. disable rps interrupt and enable either rpe, rne, or rhalf interrupt. 4. read rhir to obtain rempty status. a. if rempty=0, then record obyte, cbyt e, and pok bits and then read the fifo. a1. if cbyte=0 then skip to step 5. a2. if cbyte=1 then skip to step 7. b. if rempty=1, then skip to step 6. 5. repeat step 4. 6. wait for interrupt, skip to step 4. 7. if pok=0, then discard whole packet, if pok=1, accept the packet. 8. disable rpe, rne, or rhalf interrupt, enable rps interrupt and return to step 1. 15.1.2 transmit an hdlc message 1. make sure hdlc controller is done sending any previous messages and is current sending flags by checking that the fifo is empty by reading the tempty status bit in the thir register. 2. enable either the thalf or tnf interrupt. 3. read thir to obtain tfull status. a. if tfull=0, then write a byte into the fifo and skip to next step (special case occurs when the last byte is to be written, in this case set teom=1 before writing the byte and then skip to step 6). b. if tfull=1, then skip to step 5. 4. repeat step 3. 5. wait for interrupt, skip to step 3. 6. disable thalf or tnf interrupt and enable tmend interrupt. 7. wait for an interrupt, then read tudr status bit to make sure packet was transmitted correctly. 15.2 fdl/fs extraction and insertion the device has the ability to extract/insert data from/ into the facility data link (fdl) in the esf framing mode and from/into fs?bit position in the d4 framing mode. since slc?96 utilizes the fs?bit position, this capability can also be used in slc?96 a pplications. the device contains a complete hdlc and boc controller which can be used for the fdl or for ds0s. using the hdlc controller for the fdl is covered in section 15.3.3. to allow for backwa rd compatibility with earlier devices, legacy functionality is maintained for th e fdl, which is covered in sec tion 15.4. section 15.5 covers d4 and slc?96 operation.
DS21352/ds21552 67 of 137 firmware, which can be retrieved from the web site (www.dalsemi.com/prod_info /telecom/t1_e1_tools.html), was de veloped to implement the fdl. the code for the ds2151 incorporates the lapd protocol and can be used with any of the 51/52/352/552 scts. the code for the ds2152 can be used with the 52/352/552 scts. 15.3 hdlc and boc controller for the fdl 15.3.1 general overview the device contains a complete hdlc controller w ith 64?byte buffers in both the transmit and receive directions as well as separate de dicated hardware for bit oriented codes (boc). the hdlc controller performs all the necessary overhead for generating and receiving performance report messages (prm) as described in ansi t1.403 and the messages as described in at&t tr54016. the hdlc controller automatically generates and detects flags, generates and checks the crc check sum, generates and detects abort sequences, stuffs and destuffs zeros (for transparency), and byte aligns to the fdl data stream. the 64?byte buffers in the hdlc controller ar e large enough to allow a full prm to be received or transmitted without host intervention. the boc c ontroller will automatically detect incoming boc sequences and alert the host. when the boc ceases, the device will also alert the host. the user can set the device up to send any of the possible 6?bit boc codes. there are thirteen registers that the host will use to operate and control the operation of the hdlc and boc controllers. a brief description of the registers is shown in table 15-2.
DS21352/ds21552 68 of 137 table 15-2 hdlc/boc controller registers name function hdlc control register (hcr) general control over the hdlc and boc controllers hdlc status register (hsr) key status information for both transmit and receive directions hdlc interrupt mask register (himr) allows/stops status bits to/from causing an interrupt receive hdlc register (rhir) status information on receive hdlc controller receive boc register (rboc) status information on receive boc controller receive hdlc fifo register (rhfr) access to 64?byte hdlc fifo in receive direction receive hdlc ds0 control register 1 (rdc1) controls the hdlc function when used on ds0 channels receive hdlc ds0 control register 2 (rdc2) controls the hdlc function when used on ds0 channels transmit hdlc register (thir) status information on transmit hdlc controller transmit boc register (tboc) enables/disables transmission of boc codes transmit hdlc fifo register (thfr) access to 64?byte hdlc fifo in transmit direction transmit hdlc ds0 control register 1 (tdc1) controls the hdlc function when used on ds0 channels transmit hdlc ds0 control register 2 (tdc2) controls the hdlc function when used on ds0 channels 15.3.2 status register for the hdlc four of the hdlc/boc controller registers (hsr, rhir, rboc, and thir) provide status information. when a particular event has occurred (or is occurring) , the appropriate bit in one of these four registers will be set to a one. some of the bits in these four hdlc status registers are latched and some are real time bits that are not latc hed. section 15.3.2 contains register descrip tions that list which bits are latched and which are not. with the latched bits, when an event occurs and a bit is set to a one, it will remain set until the user reads that bit. the bit will be cleared when it is read and it will not be set again until the event has occurred again. the real time bits report th e current instantaneous c onditions that are occurring and the history of these bits is not latched. like the other status registers, the user will always proceed a read of any of the four registers with a write. the byte written to the register will inform the device which of the latched bits the user wishes to read and have cleared (the real time bits are not affected by writing to the status register). the user will write a byte to one of these registers, with a one in the bit positions he or she wishes to read and a zero in the bit positions he or she does not wish to obtain the latest information on. when a one is written to a bit location, the read register will be updated with curren t value and it will be cleare d. when a zero is written to a bit position, the read register will not be updated and the previous value will be held. a write to the status and information registers will be immediately followed by a read of the same register. the read result should be logically and?ed with the mask by te that was just written and this value should be written back into the same register to insure that b it does indeed clear. this se cond write step is necessary because the alarms and events in th e status registers occur asynchronous ly in respect to their access via the parallel port. this write?read?write (for polled driven access) or write?read (for interrupt driven access) scheme allows an external microcontroller or microprocessor to individually poll certain bits without disturbing the other bits in the register. this operation is key in controlling the device with higher?order software languages.
DS21352/ds21552 69 of 137 like the sr1 and sr2 status registers, the hsr register has the unique ability to initiate a hardware interrupt via the int* output pin. each of the events in the hsr can be either masked or unmasked from the interrupt pin via the hdlc interrupt mask register (himr). interrupts will force the int* pin low when the event occurs. the int pin will be allowed to return high (if no other interrupts are present) when the user reads the event bit that caused the interrupt to occur. 15.3.3 basic operation details to allow the framer to properly source/receive data from/to th e hdlc and boc controller the legacy fdl circuitry (which is described in section 15.4) should be disabled and the following bits should be programmed as shown: tcr1.2 = 1 (source fdl data from the hdlc and boc controller) tboc.6 = 1 (enable hdlc and boc controller) ccr2.5 = 0 (disable slc?96 and d4 fs?bit insertion) ccr2.4 = 0 (disable legacy fdl zero stuffer) ccr2.1 = 0 (disable slc?96 reception) ccr2.0 = 0 (disable legacy fdl zero stuffer) imr2.4 = 0 (disable legacy receive fdl buffer full interrupt) imr2.3 = 0 (disable legacy transmit fdl buffer empty interrupt) imr2.2 = 0 (disable legacy fdl match interrupt) imr2.1 = 0 (disable legacy fdl abort interrupt). as a basic guideline for interpreting and sending both hdlc messages and boc messages, the following sequences can be applied: 15.3.3.1 receive an hdlc message or a boc 1) enable rboc and rps interrupts. 2) wait for interrupt to occur. 3) if rboc=1, then follow steps 5 and 6. 4) if rps=1, then follow steps 7 through 13. 5) if lbd=1, a boc is present, then read the code from the rboc register and take action as needed. 6) if bd=0, a boc has ceased, take action as needed and then return to step 1. 7) disable rps interrupt and enable either rpe, rne, or rhalf interrupt. 8) read rhir to obtain rempty status. a) if rempty=0, then record obyte, cbyte, and pok bits and then read the fifo. i) if cbyte=0 then skip to step 9. ii) if cbyte=1 then skip to step 11. b) if rempty=1, then skip to step 10. 9) repeat step 8. 10) wait for interrupt, skip to step 8. 11) if pok=0, then discard whole packet. 12) if pok=1, accept the packet. 13) disable rpe, rne, or rhalf interrupt, enable rps interrupt and return to step 1.
DS21352/ds21552 70 of 137 15.3.3.2 transmit an hdlc message 1) make sure hdlc controller is done sending any previous messages and is current sending flags by checking that the fifo is empty by reading the tempty status bit in the tprm register. 2) enable either the thalf or tnf interrupt. 3) read thir to obtain tfull status. a) if tfull=0, then write a byte into the fifo and skip to ne xt step (special case occurs when the last byte is to be written, in this case set teom=1 before writing the byte and then skip to step 6). b) if tfull=1, then skip to step 5. 4) repeat step 3. 5) wait for interrupt, skip to step 3. 6) disable thalf or tnf interrupt and enable tmend interrupt. 7) wait for an interrupt, then read tudr status bit to make sure packet was transmitted correctly. 15.3.3.3 transmit a boc 1) write 6?bit code into tboc. 2) set sboc bit in tboc=1. 15.3.4 hdlc/boc register description hcr: hdlc control regi ster (address=00 hex) (msb) (lsb) rbr rhr tfs thr tabt teom tzsd tcrcd symbol position name and description rbr hcr.7 receive boc reset. a 0 to 1 transition will reset the boc circuitry. must be cleared and set again for a subsequent reset. rhr hcr.6 receive hdlc reset. a 0 to 1 transition will reset the hdlc controller. must be cleared and set again for a subsequent reset. tfs hcr.5 transmit flag/idle select. 0 = 7eh 1 = ffh thr hcr.4 transmit hdlc reset. a 0 to 1 transition will reset both the hdlc controller and the transmit boc circuitry. must be cleared and set again for a subsequent reset. tabt hcr.3 transmit abort. a 0 to 1 transition will cause the fifo contents to be dumped and one feh abort to be sent followed by 7eh or ffh flags/idle until a new packet is initiated by writing new data into the fifo. must be cleared and set again for a subsequent abort to be sent. teom hcr.2 transmit end of message. should be set to a one just before the last data byte of a hdlc packet is written into the transmit fifo at tffr. this bit will be cleared by the hdlc controller when the last byte has been transmitted. tzsd hcr.1 transmit zero stuffer defeat. overrides internal enable. 0 = enable the zero stuffer (normal operation) 1 = disable the zero stuffer tcrcd hcr.0 transmit crc defeat. 0 = enable crc generation (normal operation) 1 = disable crc generation hsr: hdlc status register (address=01 hex) (msb) (lsb) rboc rpe rps rhalf rne thalf tnf tmend symbol position name and description rboc hsr.7 receive boc detector change of state. set whenever the boc detector sees a change of state from a boc detected to a no valid code seen or vice versa. the setting of this bit prompt the user to read the rboc register for details.
DS21352/ds21552 71 of 137 rpe hsr.6 receive packet end. set when the hdlc controller detects either the finish of a valid message (i.e., crc check complete) or when the controller has experienced a message fault such as a crc checking error, or an overrun condition, or an abort has been seen. the setting of this bit prompts the user to read the rprm register for details. rps hsr.5 receive packet start . set when the hdlc controller detects an opening byte. the setting of this bit prompts the user to read the rprm register for details. rhalf hsr.4 receive fifo half full. set when the receive 64?byte fifo fills beyond the half way point. the setting of this bit prompts the user to read the rprm register for details. rne hsr.3 receive fifo not empty. set when the receive 64?byte fifo has at least one byte available for a read. the setting of this bit prompts the user to read the rprm register for details. thalf hsr.2 transmit fifo half empty. set when the transmit 64?byte fifo empties beyond the half way point. the setting of this bit prompts the user to read the tprm register for details. tnf hsr.1 transmit fifo not full. set when the transmit 64?byte fifo has at least one byte available. the setting of this bit prompts the user to read the tprm register for details. tmend hsr.0 transmit message end. set when the transmit hdlc controller has finished sending a message. the setting of this bit prompts the user to read the tprm register for details. note: the rboc, rpe, rps, and tmend bits are latched and will be cleared when read.
DS21352/ds21552 72 of 137 himr: hdlc interrupt mask register (address=02 hex) (msb) (lsb) rboc rpe rps rhalf rne thalf tnf tmend symbol position name and description rboc himr.7 receive boc detector change of state. 0 = interrupt masked 1 = interrupt enabled rpe himr.6 receive packet end. 0 = interrupt masked 1 = interrupt enabled rps himr.5 receive packet start. 0 = interrupt masked 1 = interrupt enabled rhalf himr.4 receive fifo half full. 0 = interrupt masked 1 = interrupt enabled rne himr.3 receive fifo not empty. 0 = interrupt masked 1 = interrupt enabled thalf himr.2 transmit fifo half empty. 0 = interrupt masked 1 = interrupt enabled tnf himr.1 transmit fifo not full. 0 = interrupt masked 1 = interrupt enabled tmend fimr.0 transmit message end. 0 = interrupt masked 1 = interrupt enabled
DS21352/ds21552 73 of 137 rhir: receive hdlc informatio n register (address=03 hex) (msb) (lsb) rabt rcrce rovr rvm rempty pok cbyte obyte symbol position name and description rabt rhir.7 abort sequence detected. set whenever the hdlc controller sees 7 or more ones in a row. rcrce rhir.6 crc error. set when the crc checksum is in error. rovr rhir.5 overrun. set when the hdlc controller has attempted to write a byte into an already full receive fifo. rvm rhir.4 valid message. set when the hdlc controller has detected and checked a complete hdlc packet. rempty rhir.3 empty. a real?time bit that is set high when the receive fifo is empty. pok rhir.2 packet ok. set when the byte available for reading in the receive fifo is the last byte of a valid message (and hence no abort was seen, no overrun occurred, and the crc was correct). cbyte rhir.1 closing byte. set when the byte available for reading in the receive fifo is the last byte of a message (whether the message was valid or not). obyte rhir.0 opening byte. set when the byte available for reading in the receive fifo is the first byte of a message. note: the rabt, rcrce, rovr, and rvm bits are latched and will be cleared when read.
DS21352/ds21552 74 of 137 rboc: receive bit oriented code register (address=04 hex) (msb) (lsb) lbd bd boc5 boc4 boc3 boc2 boc1 boc0 symbol position name and description lbd rboc.7 latched boc detected. a latched version of the bd status bit (rboc.6). will be cleared when read. bd rboc.6 boc detected. a real?time bit that is set high when the boc detector is presently seeing a valid sequence and set low when no boc is currently being detected. boc5 rboc.5 boc bit 5. last bit received of the 6?bit codeword. boc4 rboc.4 boc bit 4. boc3 rboc.3 boc bit 3. boc2 rboc.2 boc bit 2. boc1 rboc.1 boc bit 1. boc0 rboc.0 boc bit 0. first bit received of the 6?bit codeword. note: 1. the lbd bit is latched and will be cleared when read. 2. the rboc0 to rboc5 bits display the last valid boc code verified; these bits will be set to all ones on reset.
DS21352/ds21552 75 of 137 rhfr: receive hdlc fifo (address=05 hex) (msb) (lsb) rhfr7 rhfr6 rhfr5 rhfr4 rhfr3 rhfr2 rhfr1 rhfr0 symbol position name and description rhfr7 rhfr.7 hdlc data bit 7 . msb of a hdlc packet data byte. rhfr6 rhfr.6 hdlc data bit 6. rhfr5 rhfr.5 hdlc data bit 5. rhfr4 rhfr.4 hdlc data bit 4. rhfr3 rhfr.3 hdlc data bit 3. rhfr2 rhfr.2 hdlc data bit 2. rhfr1 rhfr.1 hdlc data bit 1. rhfr0 rhfr.0 hdlc data bit 0. lsb of a hdlc packet data byte. thir: transmit hdlc information (address=06 hex) (msb) (lsb) ?????temptytfulltudr symbol position name and description ?thir.7 not assigned. could be any value when read. ?thir.6 not assigned. could be any value when read. ?thir.5 not assigned. could be any value when read. ?thir.4 not assigned. could be any value when read. ?thir.3 not assigned. could be any value when read. tempty thir.2 transmit fifo empty. a real?time bit that is set high when the fifo is empty. tfull thir.1 transmit fifo full. a real?time bit that is set high when the fifo is full. tudr thir.0 transmit fifo under-run. set when the transmit fifo empties out without the teom control bit being set. an abort is automatically sent. note: the tudr bit is latched and will be cleared when read. tboc: transmit boc register (address=07 hex) (msb) (lsb) sboc hben boc5 boc4 boc3 boc2 boc1 boc0 symbol position name and description sboc tboc.7 send boc. rising edge triggered. must be transitioned from a 0 to a 1 transmit the boc code placed in the boc0 to boc5 bits instead of data from the hdlc controller. hben tboc.6 transmit hdlc & boc controller enable.
DS21352/ds21552 76 of 137 0 = source fdl data from the tlink pin 1 = source fdl data from the onboard hdlc and boc controller boc5 tboc.5 boc bit 5. last bit transmitted of the 6?bit codeword. boc4 tboc.4 boc bit 4. boc3 tboc.3 boc bit 3. boc2 tboc.2 boc bit 2. boc1 tboc.1 boc bit 1. boc0 tboc.0 boc bit 0. first bit transmitted of the 6?bit codeword. thfr: transmit hdlc fifo (address=08 hex) (msb) (lsb) thfr7 thfr6 thfr5 thfr4 thfr3 thfr2 thfr1 thfr0 symbol position name and description thfr7 thfr.7 hdlc data bit 7. msb of a hdlc packet data byte. thfr6 thfr.6 hdlc data bit 6. thfr5 thfr.5 hdlc data bit 5. thfr4 thfr.4 hdlc data bit 4. thfr3 thfr.3 hdlc data bit 3. thfr2 thfr.2 hdlc data bit 2. thfr1 thfr.1 hdlc data bit 1. thfr0 thfr.0 hdlc data bit 0. lsb of a hdlc packet data byte. rdc1: receive hdlc ds0 control register 1 (address=90 hex) (msb) (lsb) rds0e - rds0m rd4 rd3 rd2 rd1 rd0 symbol position name and description rds0e rdc1.7 hdlc ds0 enable. 0 = use the receive hdlc controller for the fdl. 1 = use the receive hdlc controller for one or more ds0 channels. -rdc1.6 not assigned. should be set to 0. rds0m rdc1.5 ds0 selection mode. 0 = utilize the rd0 to rd4 bits to select which single ds0 channel to use. 1 = utilize the rchblk control registers to select which ds0 channels to use. rd4 rdc1.4 ds0 channel select bit 4. msb of the ds0 channel select. rd3 rdc1.3 ds0 channel select bit 3. rd2 rdc1.2 ds0 channel select bit 2.
DS21352/ds21552 77 of 137 rd1 rdc1.1 ds0 channel select bit 1. rd0 rdc1.0 ds0 channel select bit 0. lsb of the ds0 channel select.
DS21352/ds21552 78 of 137 rdc2: receive hdlc ds0 control register 2 (address=91 hex) (msb) (lsb) rdb8 rdb7 rdb6 rdb5 rdb4 rdb3 rdb2 rdb1 symbol position name and description rdb8 rdc2.7 ds0 bit 8 suppress enable. msb of the ds0. set to one to stop this bit from being used. rdb7 rdc2.6 ds0 bit 7 suppress enable. set to one to stop this bit from being used. rdb6 rdc2.5 ds0 bit 6 suppress enable. set to one to stop this bit from being used. rdb5 rdc2.4 ds0 bit 5 suppress enable. set to one to stop this bit from being used. rdb4 rdc2.3 ds0 bit 4 suppress enable. set to one to stop this bit from being used. rdb3 rdc2.2 ds0 bit 3 suppress enable. set to one to stop this bit from being used. rdb2 rdc2.1 ds0 bit 2 suppress enable. set to one to stop this bit from being used. rdb1 rdc2.0 ds0 bit 1 suppress enable. lsb of the ds0. set to one to stop this bit from being used.
DS21352/ds21552 79 of 137 tdc1: transmit hdlc ds0 control register 1 (address=92 hex) (msb) (lsb) tds0e - tds0m td4 td3 td2 td1 td0 symbol position name and description tds0e tdc1.7 hdlc ds0 enable. 0 = use the transmit hdlc controller for the fdl. 1 = use the transmit hdlc controller for one or more ds0 channels. -tdc1.6 not assigned. should be set to 0. tds0m tdc1.5 ds0 selection mode. 0 = utilize the td0 to td4 bits to select which single ds0 channel to use. 1 = utilize the tchblk control registers to select which ds0 channels to use. td4 tdc1.4 ds0 channel select bit 4. msb of the ds0 channel select. td3 tdc1.3 ds0 channel select bit 3. td2 tdc1.2 ds0 channel select bit 2. td1 tdc1.1 ds0 channel select bit 1. td0 tdc1.0 ds0 channel select bit 0. lsb of the ds0 channel select.
DS21352/ds21552 80 of 137 tdc2: transmit hdlc ds0 control register 2 (address=93 hex) (msb) (lsb) tdb8 tdb7 tdb6 tdb5 tdb4 tdb3 tdb2 tdb1 symbol position name and description tdb8 tdc2.7 ds0 bit 8 suppress enable. msb of the ds0. set to one to stop this bit from being used. tdb7 tdc2.6 ds0 bit 7 suppress enable. set to one to stop this bit from being used. tdb6 tdc2.5 ds0 bit 6 suppress enable. set to one to stop this bit from being used. tdb5 tdc2.4 ds0 bit 5 suppress enable. set to one to stop this bit from being used. tdb4 tdc2.3 ds0 bit 4 suppress enable. set to one to stop this bit from being used. tdb3 tdc2.2 ds0 bit 3 suppress enable. set to one to stop this bit from being used. tdb2 tdc2.1 ds0 bit 2 suppress enable. set to one to stop this bit from being used. tdb1 tdc2.0 ds0 bit 1 suppress enable. lsb of the ds0. set to one to stop this bit from being used. 15.4 legacy fdl support 15.4.1 overview in order to provide backward compatibility to the older ds2152 device, the DS21352/552 maintains the circuitry that existed in the previous generation of the t1 quad framer. sections 15.4.2 and 15.4.3 cover the circuitry and operation of this legacy functionality. in new applications, it is recommended that the hdlc controller and boc controlle r described in section 15.3 are used. on the receive side, it is possible to have both the new hdlc/boc controller and the legacy hardware working at the same time. on the transmit side the hdlc/boc controller can be assigned to a dso while the legacy function supports the fdl via software. software for supportin g the legacy functions is available from dallas semiconductor. 15.4.2 receive section in the receive section, the recovered fdl bits or fs bits are shifted bit?by?bit into the receive fdl register (rfdl). since the rfdl is 8 bits in length, it will fill up every 2 ms (8 times 250 us). the framer will signal an external microcontroller that the buffe r has filled via the sr2.4 bit. if enabled via imr2.4, the int pin will toggle low indicating that the buffer has filled and needs to be read. the user has 2 ms to read this data before it is lost. if the byte in the rfdl matches either of the bytes programmed into the rfdlm1 or rfdlm2 registers, then the sr2.2 bit w ill be set to a one and th e int pin will toggled low if enabled via imr2.2. this feature allows an exte rnal microcontroller to ignore the fdl or fs pattern until an important event occurs.
DS21352/ds21552 81 of 137 the framer also contains a zero destuffer which is controlled via the ccr2.0 bit. in both ansi t1.403 and tr54016, communications on the fdl follows a subs et of a lapd protocol. the lapd protocol states that no more than 5 ones should be transmitte d in a row so that the data does not resemble an opening or closing flag (01111110) or an abort signal (11111111). if enabled via ccr2.0, the DS21352/552 will automatically look for 5 ones in a row, followed by a zero. if it finds such a pattern, it will automatically remove the zero. if the zero destuffer sees six or more ones in a row followed by a zero, the zero is not removed. the ccr2.0 bit shoul d always be set to a one when the DS21352/552 is extracting the fdl. more on how to use the DS21352/ 552 in fdl applications in this legacy support mode is covered in a se parate application note. rfdl: receive fdl register (address=28 hex) (msb) (lsb) rfdl7 rfdl6 rfdl5 rfdl4 rfdl3 rfdl2 rfdl1 rfdl0 symbol position name and description rfdl7 rfdl.7 msb of the received fdl code rfdl0 rfdl.0 lsb of the received fdl code the receive fdl register (rfdl) reports the incoming fac ility data link (fdl) or the incoming fs bits. the lsb is received first. rfdlm1: receive fdl match register 1 (address=29 hex) rfdlm2: receive fdl match re gister 2 (address=2a hex) (msb) (lsb) rfdl7 rfdl6 rfdl5 rfdl4 rfdl3 rfdl2 rfdl1 rfdl0 symbol position name and description rfdl7 rfdl.7 msb of the fdl match code rfdl0 rfdl.0 lsb of the fdl match code when the byte in the receive fdl register matches either of the two receive fdl match registers (rfdlm1/rfdlm2), sr2.2 will be set to a one and the int will go active if enabled via imr2.2.
DS21352/ds21552 82 of 137 15.4.3 transmit section the transmit section will shift out into the t1 data stream, either the fdl (in the esf framing mode) or the fs bits (in the d4 framing mode) contained in the transmit fdl register (tfdl). when a new value is written to the tfdl, it will be multiplexed serially (lsb first) into the proper position in the outgoing t1 data stream. after the full eight bits has been shifted out, the framer will signal the host microcontroller that the buffer is empty and that more data is needed by setting the sr2.3 bit to a one. the int will also toggle low if enabled via imr2.3. the user has 2 ms to update the tfdl with a new value. if the tfdl is not updated, the old value in the tfdl will be transmitted once again. the framer also contains a zero stuffer which is controlled via the ccr2.4 bit. in both ansi t1.403 and tr54016, communications on the fdl follows a subset of a la pd protocol. the lapd protocol states that no more than 5 ones should be transmitted in a row so that the data does not resemb le an opening or closing flag (01111110) or an abort signal (11111111). if enabled via ccr2.4, the framer will automatically look for 5 ones in a row. if it finds such a pattern, it will automatically insert a zero after the five ones. the ccr2.0 bit should always be set to a one when the framer is inserting the fdl. more on how to use the DS21352/552 in fdl applications is covere d in a separate application note. tfdl: transmit fdl register (address=7e hex) [also used to insert fs framing pattern in d4 framing mode; see section 15.5] (msb) (lsb) tfdl7 tfdl6 tfdl5 tfdl4 tfdl3 tfdl2 tfdl1 tfdl0 symbol position name and description tfdl7 tfdl.7 msb of the fdl code to be transmitted tfdl0 tfdl.0 lsb of the fdl code to be transmitted the transmit fdl register (tfdl) contains the facility data link (fdl) information that is to be inserted on a byte basis into the outgoing t1 data stream. the lsb is transmitted first. 15.5 d4/slc?96 operation in the d4 framing mode, the framer uses the tfdl register to insert the fs framing pattern. to allow the device to properly insert the fs framing pattern, the tf dl register at address 7eh must be programmed to 1ch and the following bits must be programmed as shown: tcr1.2=0 (source fs data from the tfdl register) ccr2.5=1 (allow the tfdl register to load on multiframe boundaries) since the slc?96 message fields share the fs?bit pos ition, the user can access the these message fields via the tfdl and rfdl registers. please see the sepa rate application note for a detailed description of how to implement a slc?96 function.
DS21352/ds21552 83 of 137 16. line interface function the line interface function in the DS21352/552 contains three sections; (1) the receiver which handles clock and data recovery, (2) the transmitter which waveshapes and drives the t1 line, and (3) the jitter attenuator. each of the these three sections is controlled by the line inter-face control register (licr) which is described below. licr: line interface contro l register (address=7c hex) (msb) (lsb) l2 l1 l0 egl jas jabds dja tpd symbol position name and description l2 licr.7 line build out select bit 2. sets the transmitter build out; see table 16-1 l1 licr.6 line build out select bit 1. sets the transmitter build out; see table 16-1 l0 licr.5 line build out select bit 0. sets the transmitter build out; see table 16-1 egl licr.4 receive equalizer gain limit. 0 = ?36 db 1 = ?30 db jas licr.3 jitter attenuator select. 0 = place the jitter attenuator on the receive side 1 = place the jitter attenuator on the transmit side jabds licr.2 jitter attenuator buffer depth select 0 = 128 bits 1 = 32 bits (use for delay sensitive applications) dja licr.1 disable jitter attenuator. 0 = jitter attenuator enabled 1 = jitter attenuator disabled tpd licr.0 transmit power down. 0 = normal transmitter operation 1 = powers down the transmitter and 3-states the ttip and tring pins 16.1 receive clock and data recovery the DS21352/552 contains a digital clock recovery sy stem. see figure 3-1 and figure 16-1 for more details. the DS21352/552 couples to the receive t1 twis ted pair via a 1:1 transformer. see for details. the 1.544 mhz clock applied to the mclk pin is intern ally multiplied by 16 via an internal pll and fed to the clock recovery system. the clock recovery system uses the clock from the pll circuit to form a 16 times oversampler which is used to recover the clock and data. this oversampling technique offers outstanding jitter tolerance (see figure 16-4). normally, the clock that is output at the rclko pin is the recovered clock from the t1 ami/b8zs waveform presented at the rtip and rring inputs. when no ami signal is present at rtip and rring, a receive carrier loss (lrcl) condition will occu r and the rclko will be sourced from the clock applied at the mclk pin. if the jitter attenuator is either placed in the transmit path or is disabled, the rclko output can exhibit slightly shorter high cycles of the clock. this is due to the highly oversampled digital clock recovery circuitry. if the jitter attenuator is placed in the receive path (as is the case in most applications), the jitter attenuator restores the rclk to being close to 50% duty cycle. please see the receive ac timing characteristics in section 24 for more details.
DS21352/ds21552 84 of 137 16.2 transmit wave shaping and line driving the DS21352/552 uses a set of laser? trimmed delay lines along with a precision digital?to?analog converter (dac) to create the wave forms that are transmitted onto the t1 line. the waveforms created by the DS21352/552 meet the latest ansi, at&t, and itu specifications. see figure 16-3. the user will select which waveform is to be generated by properly programming the l2/l1/l0 bits in the line interface control register (licr). the DS21352/552 can set up in a number of various configurations depending on the application. see table 16-1. table 16-1 line build out select in licr l2 l1 l0 line build out application 0 0 0 0 to133 feet/ dsx?1/0db csu 0 0 1 133 feet to266 dsx?1 0 1 0 266 feet to399 dsx?1 0 1 1 399 feet to533 dsx?1 1 0 0 533 feet to655 dsx?1 1 0 1 ?7.5 db csu 1 1 0 ?15 db csu 1 1 1 ?22.5 db csu due to the nature of the design of the tran smitter in the DS21352/552, very little jitter (less then 0.005 uipp broad-band from 10 hz to 100 khz) is added to the jitter present on tclki. also, the waveforms that they create are independent of the duty cy cle of tclk. the transmitter in the DS21352/552 couples to the t1 transmit twisted pair via a 1:1.15 or 1:1.36 step up transformer for the ds21552 or a 1:2 step up transformer for the DS21352 as shown in figure 16-1. in order for the devices to create the proper waveforms, this transformer used must m eet the specifications listed in table 16-3. 16.3 jitter attenuator the DS21352/552 contains an onboard jitter attenuator that can be set to a depth of either 32 or 128 bits via the jabds bit in the line interface control regist er (licr). the 128 bit mode is used in applications where large excursions of wander are expected. the 32 bit mode is used in delay sensitive applications. the characteristics of the attenuation are shown in figure 16-4. the jitter attenuator can be placed in either the receive or transmit path via the jas bit in the licr. also, the jitter attenuator can be disabled (in effect, removed) by setting the dja bit in the licr. in order for the jitter attenuator to operate properly, a 1.544 mhz clock (+50 ppm) must be applie d at the mclk pin or a crystal with similar characteristics must be applied across the mclk and xtald pins. if a crystal is applied across the mclk and xtald pins, then the maximum effective series resistance (esr) should be 40 ohms and capacitors should be placed from each leg of the crystal to the local ground plane as shown in figure 16? 1. onboard circuitry adjusts either the recovered cloc k from the clock/data recovery block or the clock applied at the tclki pin to create a smooth jitter free clock which is used to clock data out of the jitter attenuator fifo. it is acceptable to provide a gapped/ bursty clock at the tclki pin if the jitter attenuator is placed on the transmit side. if the incoming jitter ex ceeds either 120 uipp (buffer depth is 128 bits) or 28 uipp (buffer depth is 32 bits), then the ds 21352/552 will divide the internal nominal 24.704 mhz clock by either 15 or 17 instead of the normal 16 to keep the buffer from overflowing. when the device divides by either 15 or 17, it also sets the jitte r attenuator limit trip (jalt) bit in the receive information register (rir3.5).
DS21352/ds21552 85 of 137 figure 16-1 external analog connections table 16-2 transmit transformer selection device transformer resistor rt ds21552 1.15 : 1 1.36 : 1 0 ohms ideal, 2.2 ohms max 4.7 ohms ideal DS21352 2 : 1 0 ohms see separate application note on line interface design criteria for full details. notes: 1. resistor values are +/-1%. 2. the rt resistors are used to protect the device from over?voltage. 3. see the separate application note for deta ils on how to construct a protected interface. 4. normally a ttl level clock is applied mclk and the xtal pin is left as an nc. optionally a crystal can be applied across the mclk and xtald pins. table 16-3 transformer specifications specification recommended value turns ratio DS21352 1:1(receive) and1:2(transmit) 5% turns ratio ds21552 1:1(receive) an d1:1.15 or1:1.36(transmit) 5% primary inductance 600  h minimum leakage inductance 1.0  h maximum intertwining capacitance 40 pf maximum dc resistance 1.2 ohms maximum rtip rring ttip tring t1 receive line t1 transmit line DS21352 / 552 0.47uf (non- polarized) dvdd dvss 0.1uf rvdd rvss 0.1uf tvdd tvss 0.1uf vdd 50 50 0.1uf rt rt 0.01uf 1.544mhz xtald mclk nc 1 : 1 n : 1 (see table below)
DS21352/ds21552 86 of 137 figure 16-2 optional crystal connections notes: 1. c1 and c2 should be 5 pf lower than two times the nominal loading capacitance of the crystal to adjust for the input capacitance of the DS21352/552. xtald DS21352/552 c1 c2 1.544mhz mclk
DS21352/ds21552 87 of 137 figure 16-3 transmit waveform template 0 -0.1 -0.2 -0.3 -0.4 -0.5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 -500 -300 -100 0 300 500 700 -400 -200 200 400 600 100 time (ns) normalized amplitude t1.102/87, t1.403, cb 119 (oct. 79), & i.431 template
DS21352/ds21552 88 of 137 table 16-4 pulse template corner points time (ns) ui max curve min curve -500 -0.77 0.05 -0.05 -255 -0.39 0.05 -175 -0.27 0.80 -175 -.027 1.15 -150 -0.23 -0.05 -150 -0.23 0.05 -100 0.95 -75 -0.12 1.15 0 0.00 1.05 0.95 100 0.15 0.90 150 0.23 0.50 150 0.23 -0.45 175 0.27 1.05 225 0.35 -0.07 300 0.46 -0.45 430 0.66 -0.20 600 0.93 0.05 -0.05 750 1.16 0.05 -0.05
DS21352/ds21552 89 of 137 figure 16-4 jitter tolerance figure 16-5 jitter attenuation frequency ( hz) unit intervals (uipp) 1k 100 10 1 0.1 10 100 1k 10k 100 k ds2152 tol erance 1 mi mi mum tol er ance level as per tr 62411 (dec. 90)
DS21352/ds21552 90 of 137 16.4 protected interfaces in certain applications, such as connecting to the pstn, it is required that the network interface be protected from and resistant to certain electrical conditions. these conditions are divided into two categories, surge and power line cross. a typical cause of surge is lightening strike. power line cross refers to accidental contact with high voltage po wer wiring. for protection against surges, additional components and pcb layout considerations are required to reroute and dissipate this energy. in a surge event, the network interface must not be damaged and continue to work after the event. in the event of a power line contact, components such as fuses or ptcs that can ?open? the circuit are required to prevent the possibility of a fire caused by overheating the transformer. the circuit examples in this data sheet are for ?secondary over voltage protection? schemes for the line terminating equipment. primary protection is typically provided by the network service provide and is external to the equipment. figure 16-6 shows an example circuit for the 5 vo lt device and figure 16-7 is an example for the 3.3 device. in both examples, fuses are used to provide protection against power line cross. 470 ohm input resistors on the receive pair, a transient suppresser a nd a diode bridge on the transmit pair provide surge protection. resistors r1 ? r4 provide surge protection for the fuse. careful selection of the transformer will allow the use of a fuse that requires no additional surge protection such as the circuit shown in figure 16-7. the circuit shown in figure 16-7 is required for 3.3 volt operation since additional resistance in the transmit pair cannot be to lerated. for more information on line interface design, consult the t1 line interface design criteria (note 353) and secondary ov er voltage protection (not e 324) application notes. these notes are available from dallas semiconducto r?s web site.
DS21352/ds21552 91 of 137 figure 16-6 protected interf ace example for the ds21552 note: the 68uf cap is required to maintain vdd during a transient event. componet description d1 ? d4 schottky diode, inte rnational rectifier 11dq04 c1 0.1uf ceramic in para llel with 10uf tantalum c2 .47 uf, non polarized ceramic construction s semtech lc01-6, 6v low capacitance tvs fuse rt rterm r1, r2, r3, r4 x1 x2 for more information on the selection of these components see the separate application notes on secondary over voltage protection and t1 network interface design criteria . these applications notes are available from dallas semiconductor?s web site at www.dalsemi.com rtip rring ttip tring receive line ds21552 1.544mhz mclk +vdd s c1 d1 d2 d3 d4 1:1 fuse fuse transmit line fuse fuse 0.1uf n:1 470 470 dvdd dvss 0.1uf rvdd rvss 0.1uf tvdd tvss 0.1uf +5v 0.01uf 68uf c2 r1 r2 r3 r4 rt rt rterm rterm x1 x2 +
DS21352/ds21552 92 of 137 figure 16-7 protected interf ace example for the DS21352 note: the 68uf cap is required to maintain vdd levels during a transient event. componet description d1 ? d4 schottky diode, inte rnational rectifier 11dq04 c1 0.1uf ceramic in para llel with 10uf tantalum c2 .47 uf, non polarized ceramic construction fuse 1.25a slo-blo, littlefuse v2301.25 s semtech lc01-6, 6v low capacitance tvs x1, x2 transpower pt314, low dcr rtip rring ttip tring receive line DS21352 1.544mhz mclk +vdd s c1 d1 d2 d3 d4 1:1 fuse fuse transmit line fuse fuse 0.1uf 2:1 470 470 dvdd dvss 0.1uf rvdd rvss 0.1uf tvdd tvss 0.1uf +3.3v 0.01uf 68u f c2 50 50 x1 x2 +
DS21352/ds21552 93 of 137 16.5 receive monitor mode when connecting to a monitor port a large resistive loss is incurred due to the voltage divider between the t1 line termination resistors (rt) and the monitor port isolation resistors (rm) as shown below. the rm resistors are typically 470 ohm. this, along with the 100 ohm termination (rt), produces 20db of loss. the receiver of the DS21352/552 can provide gain to ove rcome the resistive loss of a monitor connection. this is a purely resistive loss/gain and should not be confused with the cable loss characteristics of a t1 transmission line. via the test2 register as shown in the table below, the receiver can be programmed to provide both 12db and 20db of gain. figure 16-8 typical monitor port application table 16-5 receive monitor mode gain test2 (address = 09 hex) register value gain 72 hex 12db 70 hex 20db primary t1 terminating device monitor port jack t1 line x f m r ds21x52 rt rm rm secondary t1 terminating device
DS21352/ds21552 94 of 137 17. programmable in?band loop code generation and detection each framer in the DS21352/552 has the ability to generate and detect a repeating bit pattern that is from one to eight bits in length. to transmit a pattern, the us er will load the pattern to be sent into the transmit code definition (tcd) register and select the proper length of the pattern by setting the tc0 and tc1 bits in the in?band code control (ibcc) register. once this is accomplished, the pattern will be transmitted as long as the tloop control bit (ccr3.1) is enabled. normally (unless the transmit formatter is programmed to not insert the f?bit pos ition) the framer will overwrite the repeating pattern once every 193 bits to allow the f?bit position to be sent . as an example, if the user wished to transmit the standard ?loop up? code for channel servi ce units which is a repeating pattern of ...10000100001... then 80h would be loaded into tdr and the length would set to 5 bits. each framer can detect two separate repeating pa tterns to allow for both a ?loop up? code and a ?loop down? code to be detected. the user will program the codes to be detected in the receive up code definition (rupcd) register and th e receive down code definition (r dncd) register and the length of each pattern will be selected via the ibcc register. th e framer will detect repea ting pattern codes in both framed and unframed circumstances with bit error ra tes as high as 10e?2. the code detector has a nominal integration period of 48 ms. hence, after about 48 ms of receiving either code, the proper status bit (lup at sr1.7 and ldn at sr1.6) will be set to a one. normally codes are sent for a period of 5 seconds. it is recommend that the software poll the framer every 100 ms to 1000 ms until 5 seconds has elapsed to insure that the code is continuously present. ibcc: in?band code control register (address=12 hex) (msb) (lsb) tc1 tc0 rup2 rup1 rup0 rdn2 rdn1 rdn0 symbol position name and description tc1 ibcc.7 transmit code length definition bit 1. see table 17-1 tc0 ibcc.6 transmit code length definition bit 0. see table 17-1 rup2 ibcc.5 receive up code leng th definition bit 2. see table 17-2 rup1 ibcc.4 receive up code leng th definition bit 1. see table 17-2 rup0 ibcc.3 receive up code leng th definition bit 0. see table 17-2 rdn2 ibcc.2 receive down code leng th definition bit 2. see table 17-2 rdn1 ibcc.1 receive down code leng th definition bit 1. see table 17-2 rdn0 ibcc.0 receive down code leng th definition bit 0. see table 17-2
DS21352/ds21552 95 of 137 table 17-1 transmit code length tc1 tc0 length selected 0 0 5 bits 0 1 6 bits / 3 bits 1 0 7 bits 1 1 8 bits / 4 bits / 2 bits / 1 bits table 17-2 receive code length rup2/ rdn2 rup1/ rdn1 rup0/ rdn0 length selected 0001 bits 0012 bits 0103 bits 0114 bits 1005 bits 1016 bits 1107 bits 1118 bits tcd: transmit code defini tion register (address=13 hex) (msb) (lsb) c7 c6 c5 c4 c3 c2 c1 c0 symbol position name and description c7 tcd.7 transmit code definition bit 7. first bit of the repeating pattern. c6 tcd.6 transmit code definition bit 6. c5 tcd.5 transmit code definition bit 5. c4 tcd.4 transmit code definition bit 4. c3 tcd.3 transmit code definition bit 3. c2 tcd.2 transmit code definition bit 2. a don?t care if a 5 bit length is selected. c1 tcd.1 transmit code definition bit 1. a don?t care if a 5 or 6 bit length is selected. c0 tcd.0 transmit code definition bit 0. a don?t care if a 5, 6 or 7 bit length is selected.
DS21352/ds21552 96 of 137 rupcd: receive up co de definition register (address=14 hex) (msb) (lsb) c7 c6 c5 c4 c3 c2 c1 c0 symbol position name and description c7 rupcd.7 receive up code definition bit 7. first bit of the repeating pattern. c6 rupcd.6 receive up code definition bit 6. a don?t care if a 1 bit length is selected. c5 rupcd.5 receive up code definition bit 5. a don?t care if a 1 or 2 bit length is selected. c4 rupcd.4 receive up code definition bit 4. a don?t care if a 1 to 3 bit length is selected. c3 rupcd.3 receive up code definition bit 3. a don?t care if a 1 to 4 bit length is selected. c2 rupcd.2 receive up code definition bit 2. a don?t care if a 1 to 5 bit length is selected. c1 rupcd.1 receive up code definition bit 1. a don?t care if a 1 to 6 bit length is selected. c0 rupcd.0 receive up code definition bit 0. a don?t care if a 1 to 7 bit length is selected. rdncd: receive down code definition register (address=15 hex) (msb) (lsb) c7 c6 c5 c4 c3 c2 c1 c0 symbol position name and description c7 rdncd.7 receive down code definition bit 7. first bit of the repeating pattern. c6 rdncd.6 receive down code definition bit 6. a don?t care if a 1 bit length is selected. c5 rdncd.5 receive down code definition bit 5. a don?t care if a 1 or 2 bit length is selected. c4 rdncd.4 receive down code definition bit 4. a don?t care if a 1 to 3 bit length is selected. c3 rdncd.3 receive down code definition bit 3. a don?t care if a 1 to 4 bit length is selected. c2 rdncd.2 receive down code definition bit 2. a don?t care if a 1 to 5 bit length is selected. c1 rdncd.1 receive down code definition bit 1. a don?t care if a 1 to 6 bit length is selected. c0 rdncd.0 receive down code definition bit 0. a don?t care if a 1 to 7 bit length is selected.
DS21352/ds21552 97 of 137 18. transmit transparency each of the 24 t1 channels in the transmit direction of the framer can be either forced to be transparent or in other words, can be forced to stop bit 7 stuffi ng and/or robbed signaling from overwriting the data in the channels. transparency can be invoked on a cha nnel by channel basis by properly setting the ttr1, ttr2, and ttr3 registers. ttr1/ttr2/ttr3: transmit transp arency register (address=39 to 3b hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 ttr1 (39) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 ttr2 (3a) ch24 ch23 ch22 ch21 ch20 ch 19 ch18 ch17 ttr3 (3b) symbols positions name and description ch1-24 ttr1.0-3.7 transmit transparency registers. 0 = this ds0 channel is not transparent 1 = this ds0 channel is transparent each of the bit position in the transmit transparency registers (ttr1/ttr2/ttr3) represent a ds0 channel in the outgoing frame. when these bits are set to a one, the corresponding channel is transparent (or clear). if a ds0 is programmed to be clear, no robbed bit signaling will be inserted nor will the channel have bit 7 stuffing performed. however, in the d4 framing mode, bit 2 will be overwritten by a zero when a yellow alarm is transmitted. also the user has the option to prevent the ttr registers from determining which channels are to have bit 7 stuffi ng performed. if the tcr2.0 and tcr1.3 bits are set to one, then all 24 t1 channels will have bit 7 stuffing performed on them regardless of how the ttr registers are programmed. in this manner, the ttr registers are only affecting which channels are to have robbed bit signaling inserted into them. 19. jtag-boundary scan arch itecture and test access port 19.1 description the DS21352/552 ieee 1149.1 design supports the sta ndard instruction codes sample/preload, bypass, and extest. optional pub lic instructions included are highz, clamp, and idcode. see figure 19-1. the DS21352/552 contains the following as required by ieee 1149.1 standard test access port and boundary scan architecture. test access port (tap) tap controller instruction register bypass register boundary scan register device identification register
DS21352/ds21552 98 of 137 the DS21352/552 are enhanced versions of the ds2152 and are backward pin-compatible. the jtag feature uses pins that had no function in the ds2152. when using the jtag feature, be sure fms (pin 76) is tied low enabling the newly defined pins of the DS21352/552. details on boundary scan architecture and the test access port can be found in ieee 1149.1-1990, ieee 1149.1a-1993, and ieee 1149.1b-1994. the test access port has the necessary interface pins; jtrst, jtclk, jtms, jtdi, and jtdo. see the pin descriptions for details. figure 19-1 jtag functi onal block diagram +v boundary scan register identification register bypass register instruction register jtdi jtms jtclk jtrst jtdo +v +v test access port controller mux 10k 10k 10k select output enable
DS21352/ds21552 99 of 137 19.2 tap controller state machine the tap controller is a finite state machine that responds to the logic le vel at jtms on the rising edge of jtclk. see figure 19-1. test-logic-reset upon power up, the tap controller will be in the test-l ogic-reset state. the instruction register will contain the idcode instruction. all system logic of the device will operate normally. run-test-idle the run-test-idle is used between scan operations or during specific te sts. the instruction register and test registers will remain idle. select-dr-scan all test registers retain their previous state. with jtms low, a rising edge of jtclk moves the controller into the capture-dr state and will initiate a scan sequence. jtms high during a rising edge on jtclk moves the controller to the select-ir-scan state. capture-dr data may be parallel-loaded into the test data registers selected by the current instruction. if the instruction does not call for a parallel load or the selected register does not allow parallel loads, the test register will remain at its current value. on the rising edge of jtclk, the controller will go to the shift- dr state if jtms is low or it will go to the exit1-dr state if jtms is high. shift-dr the test data register selected by the current instruction will be connected between jtdi and jtdo and will shift data one stage towards its serial output on each rising edge of jtclk. if a test register selected by the current instruction is not placed in the serial path, it will maintain its previous state. exit1-dr while in this state, a rising edge on jtclk will put the controller in the update-dr state, which terminates the scanning process, if jtms is high. a rising edge on jtclk with jtms low will put the controller in the pause-dr state. pause-dr shifting of the test registers is halted while in this state. all test registers selected by the current instruction will retain their previous state. the controller will remain in this state while jtms is low. a rising edge on jtclk with jtms high will put the controller in the exit2-dr state. exit2-dr a rising edge on jtclk with jtms high while in this state will put the controller in the update-dr state and terminate the scanning process. a rising edge on jtclk with jtms low will enter the shift- dr state. update-dr a falling edge on jtclk while in the update-dr state will latch the data from the shift register path of the test registers into the data output latches. this prevents changes at the parallel output due to changes in the shift register.
DS21352/ds21552 100 of 137 select-ir-scan all test registers retain their previous state. the instruction register will remain unchanged during this state. with jtms low, a rising edge on jtclk moves the controller into the capture-ir state and will initiate a scan sequence for the instruction register. jtms high during a rising edge on jtclk puts the controller back into the test-logic-reset state. capture-ir the capture-ir state is used to load the shift register in the instruction register with a fixed value. this value is loaded on the rising edge of jtclk. if jtms is high on the rising edge of jtclk, the controller will enter the exit1-ir state. if jtms is low on the rising edge of jtclk, the controller will enter the shift-ir state. shift-ir in this state, the shift register in the instruction register is connected between jtdi and jtdo and shifts data one stage for every rising edge of jtclk toward s the serial output. the parallel register, as well as all test registers, remain at their previous states. a rising edge on jtclk with jtms high will move the controller to the exit1-ir state. a rising edge on jtclk with jtms low will keep the controller in the shift-ir state while moving data one stage thorough the instruction shift register. exit1-ir a rising edge on jtclk with jtms low will put the controller in the pause-ir state. if jtms is high on the rising edge of jtclk, the controller will enter the update-ir state and terminate the scanning process. pause-ir shifting of the instruction shift register is halted temporarily. with jtms high, a rising edge on jtclk will put the controller in the exit2-ir state. the cont roller will remain in the pause-ir state if jtms is low during a rising edge on jtclk.
DS21352/ds21552 101 of 137 figure 19-2 tap controller state diagram 19.3 instruction register the instruction register contains a shift register as well as a latched parallel output and is 3 bits in length. when the tap controller enters the shift-ir state, th e instruction shift register will be connected between jtdi and jtdo. while in the shift-ir state, a rising edge on jtclk with jtms low will shift the data one stage towards the serial output at jtdo. a rising edge on jtclk in the exit1-ir state or the exit2- ir state with jtms high will move the controller to the update-ir state. the falling edge of that same jtclk will latch the data in the instruction shift register to the instruction parallel output. instructions supported by the DS21352/552 with their respective opera tional binary codes are shown in table 19-1. 1 0 0 1 11 1 1 1 1 1 11 1 1 00 0 0 0 1 0 0 0 0 1 1 0 0 0 0 select dr-scan capture dr shift dr exit dr pause dr exit2 dr update dr select ir-scan capture ir shift ir exit ir pause ir exit2 ir update ir test logic reset run test/ idle 0
DS21352/ds21552 102 of 137 table 19-1 instruction codes for ieee 1149.1 architecture instruction selected regi ster instruction codes sample/preload boundary scan 010 bypass bypass 111 extest boundary scan 000 clamp bypass 011 highz bypass 100 idcode device identification 001 sample/preload this is a mandatory instruction for the ieee 1149.1 specification. this instruction supports two functions. the digital i/os of the device can be samp led at the boundary scan register without interfering with the normal operation of the device by using th e capture-dr state. sample/preload also allows the device to shift data into the boundary scan register via jtdi using the shift-dr state. bypass when the bypass instruction is latched into the parallel instruction register, jtdi connects to jtdo through the one-bit bypass test register. this allows data to pass from jtdi to jtdo not affecting the device?s normal operation. extest this allows testing of all interconnections to the device. when the extest instruction is latched in the instruction register, the following actions occur. once enabled via the update-ir state, the parallel outputs of all digital output pins will be driven. the boundary scan register will be connected between jtdi and jtdo. the capture-dr will sample a ll digital inputs into the boundary scan register. clamp all digital outputs of the device w ill output data from the boundary scan parallel output while connecting the bypass register between jtdi and jtdo. the outputs will not change during the clamp instruction. highz all digital outputs of the device will be placed in a high impedance state. the bypass register will be connected between jtdi and jtdo. exit2-ir a rising edge on jtclk with jtms low will put the controller in the update-ir state. the controller will loop back to shift-ir if jtms is high during a rising edge of jtclk in this state. update-ir the instruction code shifted into the instruction shift register is latched into the parallel output on the falling edge of jtclk as the controller enters this state. once latched, this instruction becomes the current instruction. a rising edge on jtclk with jtms low, will put the controller in the run-test- idle state. with jtms high, the controller will enter the select-dr-scan state.
DS21352/ds21552 103 of 137 idcode when the idcode instruction is latched into the parallel instruction register, the identification test register is selected. the device identification code will be loaded into the identification register on the rising edge of jtclk following entry into the capture-dr state. shift-dr can be used to shift the identification code out serially via jtdo. during test-logic-reset, the identification code is forced into the instruction register?s parallel output. the id c ode will always have a ?1? in the lsb position. the next 11 bits identify the manufacturer?s jedec numbe r and number of continuation bytes followed by 16 bits for the device and 4 bits for th e version. see table 19-2. table 19 -3 lists the device id codes for the sct devices. table 19-2 id code structure msb lsb version contact factory device id jedec 1 4 bits 16bits 00010100001 1 table 19-3 device id codes device 16-bit id ds21354 0005h ds21554 0003h DS21352 0004h ds21552 0002h 19.4 test registers ieee 1149.1 requires a minimum of two test registers; the bypass register and the boundary scan register. an optional test register has been included with the DS21352/552 design. this test register is the identification register and is used in conjunction with the idcode instruction and the test-logic-reset state of the tap controller. boundary scan register this register contains both a shift register path and a latched parallel output for all control cells and digital i/o cells and is n bits in length. see tabl e 19-4 for all of the cell bit locations and definitions. bypass register this is a single one-bit shift register used in conjunction with the bypass, clamp, and highz instructions which provides a s hort path between jtdi and jtdo.
DS21352/ds21552 104 of 137 identification register the identification register contains a 32-bit shift register and a 32-bit latc hed parallel output. this register is selected during the idcode instruction and when the tap controller is in the test-logic- reset state. see table 19-2. table 19-3 lists the device id codes for the sct devices. table 19-4 boundary scan control bits bit pin symbol type control bit description 2 1 rchblk o 2jtmsi 13 8mclk o 4jtclki 5jtrsti 06 rcl o 7jtdii 8n/c? 9n/c? 10 jtdo o 72 11 bts i 71 12 liuc i 70 13 8xclk o 69 14 test i 68 15 nc ? 16 rtip i 17 rring i 18 rvdd ? 19 rvss ? 20 rvss ? 21 mclk i 22 xtald o 67 23 nc ? 24 rvss ? 66 25 int o 26 n/c ? 27 n/c ? 28 n/c ? 29 ttip o 30 tvss ? 31 tvdd ? 32 tring o 65 33 tchblk o 64 34 tlclk o 63 35 tlink i 62 36 ci i 61 ? tsync.cntl ? 0 = tsync an input 1 = tsync an output 60 37 tsync i/o table 19-4 boundary scan control bits (cont.) bit pin symbol type control bit description 59 38 tposi i 58 39 tnegi i 57 40 tclki i 56 41 tclko o 55 42 tnego o 54 43 tposo o 44 dvdd ?
DS21352/ds21552 105 of 137 45 dvss ? 53 46 tclk i 52 47 tser i 51 48 tsig i 50 49 teso o 49 50 tdata i 48 51 tsysclk i 47 52 tssync i 46 53 tchclk o 45 54 co o 44 55 mux i 43 ? bus.cntl ? 0 = d0-d7/ad0-ad7 are inputs 1 = d0-d7/ad0-ad7 are outputs 42 56 d0/ad0 i/o 41 57 d1/ad1 i/o 40 58 d2/ad2 i/o 39 59 d3/ad3 i/o 60 dvss ? 61 dvdd ? 38 62 d4/ad4 i/o 37 63 d5/ad5 i/o 36 64 d6/ad6 i/o 35 65 d7/ad7 i/o 34 66 a0 i 33 67 a1 i 32 68 a2 i 31 69 a3 i 30 70 a4 i 29 71 a5 i 28 72 a6 i 27 73 ale(as)/a7 i 26 74 rd*(ds*) i 25 75 cs* i 24 76 fms i 23 77 wr*(r/w*) i 22 78 rlink o 21 79 rlclk o 80 dvss ? table 19-4 boundary scan control bits (cont.) bit pin symbol type control bit description 81 dvdd 20 82 rclk o 83 dvdd ? 84 dvss ? 19 85 rdata o 18 86 rposi i 17 87 rnegi i 16 88 rclki i 15 89 rclko o 14 90 rnego o 13 91 rposo o 12 92 rchclk o 11 93 rsigf o 10 94 rsig o 995 rser o 896 rmsync o
DS21352/ds21552 106 of 137 7 97 rfsync o 6 ? rsync.cntl ? 0 = rsync an input 1 = rsync an output 598 rsync i/o 499rlos/lotco 3 100 rsysclk i
DS21352/ds21552 107 of 137 20. interleaved pcm bus operation in many architectures, the outputs of individual framers are combined in to higher speed serial buses to simplify transport across the system. the DS21352/552 ca n be configured to a llow data and signaling buses to be multiplexed into higher speed data and signaling buses eliminating external hardware saving board space and cost. the interleaved pcm bus option (ibo) supports tw o bus speeds. the 4.096 mhz bus speed allows two scts to share a common bus. the 8.192 mhz bus speed allows four scts to share a common bus. see figure 20-1 for an example of 4 devices sharing a common 8.192mhz pcm bus. each sct that shares a common bus must be configured through software a nd requires the use of one or two device pins. the elastic stores of each sct must be enabled a nd configured for 2.048 mhz operation. see figure 21-6 and figure 21-7. for all bus configurations, one sct will be configured as the master device and the remaining scts will be configured as slave devices. in the 4.096 mhz bus c onfiguration there is one master and one slave. in the 8.192 mhz bus configuration there is one mast er and three slaves. refer to the ibo register description for more detail. ibo: interleave bus operation register (address = 94 hex) (msb) (lsb) - - - - iboen intsel msel0 msel1 symbol position name and description -ibo.7 not assigned. should be set to 0. -ibo.6 not assigned. should be set to 0. -ibo.5 not assigned. should be set to 0. -ibo.4 not assigned. should be set to 0. iboen ibo.3 interleave bus operation enable 0 = interleave bus operation disabled. 1 = interleave bus operation enabled. intsel ibo.2 interleave type select 0 = byte interleave. 1 = frame interleave. msel0 ibo.1 master device bus select bit 0. see table 20-1. msel1 ibo.0 master device bus select bit 1. see table 20-1.
DS21352/ds21552 108 of 137 table 20-1 master device bus select msel1 msel0 function 0 0 slave device. 0 1 master device with 1 slave device (4.096 mhz bus rate) 1 0 master device with 3 slave devices (8.192 mhz bus rate) 11reserved figure 20-1 ibo basic configuration using 4 scts rsysclk tsysclk rsync tssync ci co rsig tsig tser rser rsysclk tsysclk ci co rsig tsig tser rser rsysclk tsysclk ci co rsig tsig tser rser rsysclk tsysclk ci co rsig tsig tser rser master sct slave #1 slave #2 slave #3 8.192mhz system clock in system 8khz frame sync in pcm data out pcm data in pcm signaling out pcm signaling in rsync tssync rsync tssync rsync tssync
DS21352/ds21552 109 of 137 20.1 channel interleave in channel interleave mode data is output to the pcm data out bus one channel at a time from each of the connected scts until all channels of frame n from all each sct has been place on the bus. this mode can be used even when the connect ed scts are operating asynchronous to each other. the elastic stores will manage slip conditions. see figure 21-13 for details. 20.2 frame interleave in frame interleave mode data is output to the pcm data out bus one frame at a time from each of the connected scts. this mode is used only when all connected scts are synchronous. in this mode, slip conditions are not allowed. see figure 21-14 for details. 21. functional timing diagrams figure 21-1 receive side d4 timing notes: 1. rsync in the frame mode (rcr2.4 = 0) and double-wide frame sync is not enabled (rcr2.5 = 0) 2. rsync in the frame mode (rcr2.4 = 0) and double-wide frame sync is enabled (rcr2.5 = 1) 3. rsync in the multiframe mode (rcr2.4 = 1) 4. rlink data (fs - bits) is updated one bit pr ior to even frames and held for two frames 5. rlink and rlclk are not synchronous with rsync wh en the receive side elastic store is enabled frame# 1 2345678910111212345 4 rlink rlclk 3 rsync 1 rsync rfsync 2 rsync
DS21352/ds21552 110 of 137 figure 21-2 receive side esf timing notes: 1. rsync in frame mode (rcr2.4 = 0) and double wide frame sync is not enabled (rcr2.5 = 0) 2. rsync in frame mode (rcr2.4 = 0) and double wide frame sync is enabled (rcr2.5 = 1) 3. rsync in multiframe mode (rcr2.4 = 1) 4. zbtsi mode disabled (rcr2.6 = 0) 5. rlink data (fdl bits) is updated one bit time before odd frames and held for two frames 6. zbtsi mode is enabled (rcr2.6 = 1) 7. rlink data (z bits) is updated one bit time before odd frames and held for four frames 8. rlink and rlclk are not synchronous with rsync when the receive side elastic store is enabled 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 6 rfsync frame# tlclk rsync rsync rsync tlink 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 4 rlclk rlink 5 7
DS21352/ds21552 111 of 137 figure 21-3 receive side boundary ti ming (with elastic store disabled) notes: 1. rchblk is programmed to block channel 24 2. shown is rlink/rlclk in the esf framing mode figure 21-4 receive side 1.544 mhz boundary timing (with elastic store enabled) notes: 1. rsync is in the output mode (rcr2.3 = 0) 2. rsync is in the input mode (rcr2.3 = 1) 3. rchblk is programmed to block channel 24 channel 23 channel 24 channel 1 channel 23 channel 24 channel 1 rclk rser rsync rfsync rsig rchclk rchblk 1 rlclk rlink 2 b a c/a d/b a c/a d/b lsb f msb msb lsb ab rser channel 23 channel 24 channel 1 rchclk rchblk rsysclk rsync 2 3 rsync 1 rmsync rsig lsb f msb msb lsb channel 23 channel 24 channel 1 b a c/a d/b a c/a d/b ab
DS21352/ds21552 112 of 137 figure 21-5 receive side 2.048 mhz boundary timing (with elastic store enabled) notes: 1. rser data in channels 1, 5, 9, 13, 17, 21, 25, and 29 are forced to one 2. rsync is in the output mode (rcr2.3 = 0) 3. rsync is in the input mode (rcr2.3 = 1) 4. rchblk is forced to one in the same channels as rser (see note 1) 5. the f-bit position is passed through the receive side elastic store rser channel 1 rchclk rchblk rsysclk rsync channel 31 channel 32 1 3 4 rsync 2 rmsync rsig channel 31 channel 32 b a c/a d/b c/a d/b ab channel 1 lsb msb lsb f 5
DS21352/ds21552 113 of 137 figure 21-6 receive side interl eave bus operation, byte mode notes: 1. 4.096 mhz bus configuration. 2. 8.192 mhz bus configuration. 3. rsync is in the input mode (rcr1.5 = 0) rser 1 rsync rsig 1 rser 2 rsig 2 fr2 ch32 fr3 ch32 fr0 ch1 fr1 ch1 fr2 ch1 fr3 ch1 fr0 ch2 fr1 ch2 fr2 ch2 fr3 ch2 fr1 ch32 fr0 ch1 fr1 ch1 fr0 ch2 fr1 ch2 fr1 ch32 fr0 ch1 fr1 ch1 fr0 ch2 fr1 ch2 fr2 ch32 fr3 ch32 fr0 ch1 fr1 ch1 fr2 ch1 fr3 ch1 fr0 ch2 fr1 ch2 fr2 ch2 fr3 ch2 a bcd a bcd bit detail rser lsb rsysclk rsync 3 framer 3, channel 32 msb lsb framer 0, channel 1 rsig framer 3, channel 32 framer 0, channel 1 msb lsb framer 1, channel 1 framer 1, channel 1 a bcd
DS21352/ds21552 114 of 137 figure 21-7 receive side interl eave bus operation, frame mode notes: 1. 4.096 mhz bus configuration. 2. 8.192 mhz bus configuration. 3. rsync is in the input mode (rcr1.5 = 0). rser lsb rsysclk rsync 3 framer 3, channel 32 msb lsb framer 0, channel 1 rsig framer 3, channel 32 framer 0, channel 1 msb lsb framer 0, channel 2 framer 0, channel 2 bit detail a bc/ad/b a bc/ad/b a bc/ad/b fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 rser 1 rsync rsig rser rsig 2 2 fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32
DS21352/ds21552 115 of 137 figure 21-8 transmit side d4 timing notes: 1. tsync in the frame mode (tcr2.3 = 0) and double-wide frame sync is not enabled (tcr2.4 = 0) 2. tsync in the frame mode (tcr2.3 = 0) and double-wide frame sync is enabled (tcr2.4 = 1) 3. tsync in the multiframe mode (tcr2.3 = 1) 4. tlink data (fs - bits) sampled during the f-bit position of even frames for insertion into the outgoing t1 stream when enabled via tcr1.2 5. tlink and tlclk are not synchronous with tssync 12345678910111212345 1 2 3 4 tssync frame# tlclk tsync tsync tsync tlink
DS21352/ds21552 116 of 137 figure 21-9 transmit side esf timing notes: 1. tsync in frame mode (tcr2.3 = 0) and double-wide frame sync is not enabled (tcr2.4 = 0) 2. tsync in frame mode (tcr2.3 = 0) and double-wide frame sync is enabled (tcr2.4 = 1) 3. tsync in multiframe mode (tcr2.3 = 1) 4. tlink data (fdl bits) sampled during the f-bit time of odd frame and inserted into the outgoing t1 stream if enabled via tcr1.2 5. zbtsi mode is enabled (tcr2.5 = 1) 6. tlink data (z bits) sampled during the f-bit time of frames 1, 5, 9, 13, 17, and 21 and inserted into the outgoing stream if enabled via tcr1.2 7. tlink and tlclk are not synchronous with tssync 123456789101112 1 2 3 6 tssync frame# tlclk tsync tsync tsync tlink 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 4 tlclk tlink 5
DS21352/ds21552 117 of 137 figure 21-10 transmit side boundary timing (with elastic store disabled) notes: 1. tsync is in the output mode (tcr2.2 = 1) 2. tsync is in the input mode (tcr2.2 = 0) 3. tchblk is programmed to block channel 2 4. shown is tlink/tlclk in the esf framing mode figure 21-11 transmit side 1.544 mhz boundary timing (with elastic store enabled) notes: 1. tchblk is programmed to block channel 24 (if the tpcsi bit is set, then the signaling data at tsig will be ignored during channel 24). lsb f msb lsb msb lsb msb channel 1 channel 2 channel 1 channel 2 abc/ad/b abc/ad/b tclk tser tsync tsync tsig tchclk tchblk tlclk tlink d/b 1 2 3 4 don't care lsb f msb lsb msb channel 1 channel 24 a b c/a d/b a b c/a d/b tsysclk tser tssync tsig tchclk tchblk channel 23 a channel 23 channel 24 channel 1 1
DS21352/ds21552 118 of 137 figure 21-12 transmit side 2.048 mhz boundary timing (with elastic store enabled) notes: 1. tser data in channels 1, 5, 9, 13, 17, 21, 25, and 29 is ignored 2. tchblk is programmed to block channel 31 (if the tpcsi bit is set, then the signaling data at tsig will be ignored). 3. tchblk is forced to one in the same channels as tser is ignored (see note 1) 4. the f-bit position for the t1 frame is sampled and passed through the transmit side elastic store into the msb bit position of channel 1. (normally the transmit side formatter overwrites the f-bit position unless the formatter is programmed to pass-through the f-bit position) lsb f lsb msb channel 1 channel 32 abc/ad/b abc/ad/b tsysclk tser tssync tsig tchclk tchblk channel 31 a channel 31 channel 32 channel 1 1 4 2,3
DS21352/ds21552 119 of 137 figure 21-13 transmit side interleave bus operation, byte mode notes: 1. 4.096 mhz bus configuration. 2. 8.192 mhz bus configuration. tser 1 tssync tsig 1 tser 2 tsig 2 fr2 ch32 fr3 ch32 fr0 ch1 fr1 ch1 fr2 ch1 fr3 ch1 fr0 ch2 fr1 ch2 fr2 ch2 fr3 ch2 fr1 ch32 fr0 ch1 fr1 ch1 fr0 ch2 fr1 ch2 fr1 ch32 fr0 ch1 fr1 ch1 fr0 ch2 fr1 ch2 fr2 ch32 fr3 ch32 fr0 ch1 fr1 ch1 fr2 ch1 fr3 ch1 fr0 ch2 fr1 ch2 fr2 ch2 fr3 ch2 tser lsb tsysclk tssync framer 3, channel 32 msb lsb framer 0, channel 1 tsig framer 3, channel 32 framer 0, channel 1 msb lsb framer 1, channel 1 framer 1, channel 1 3 bit detail a bc/ad/b a bc/ad/b a bc/ad/b
DS21352/ds21552 120 of 137 figure 21-14 transmit interleave bus operation, frame mode notes: 1. 4.096 mhz bus configuration. 2. 8.192 mhz bus configuration. tser tsysclk tssync tsig framer 3, channel 32 framer 0, channel 1 framer 0, channel 2 framer 3, channel 32 framer 0, channel 1 framer 0, channel 2 bit detail lsb msb lsb msb lsb bc/ad/b a bc/ad/b a a bc/ad/b fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 tser 1 tssync tsig 1 tser 2 tsig 2 fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32 fr0 ch1-32 fr1 ch1-32 fr2 ch1-32 fr3 ch1-32
DS21352/ds21552 121 of 137 22. receive and transmit data flow diagrams figure 22-1 receive data flow rcr2.7 rmr1 to rmr3 rcc1 to rcc3 rc1 to rc24 signaling extraction signaling buffer receive mark code insertion per channel code insertion rnegi rposi b8zs decoder receive signaling re-insertion 0 0 0 1 1 1 rcbr1 to rcbr3 per channel signaling re-insert enable (ccr4.6) signaling re-insertion enable (ccr4.7) rsig rser elastic store rsync freeze ccr4.5 signaling all ones
DS21352/ds21552 122 of 137 figure 22-2 transmit data flow idle code / per channel lb tir1 to tir3 software signaling insertion ts1 to ts12 bit 7 stuffing one's density monitor f-bit mux crc mux ami or b8zs converter / blue alarm gen. software signaling enable (tcr1.4) tpos tneg transmit blue (tcr1.1) b8zs enable (ccr2.6) tfdl select (tcr1.2) tfdl tlink crc calculation pulse density enforcer enable (ccr3.3) pulse density violation (rir2.0) frame mode select (ccr2.7) d4 yellow alarm select (tcr2.1) transmit yellow (tcr1.0) ttr1 to ttr3 bit 7 zero suppression enable (tcr2.0) global bit 7 stuffing (tcr1.3) f-bit pass through (tcr1.6) frame mode select (ccr2.7) crc pass through (tcr1.5) frame mode select (ccr2.7) = register = device pin = selector key: d4 bit 2 yellow alarm insertion d4 12th fs bit yellow alarm gen. frame mode select (ccr2.7) d4 yellow alarm select (tcr2.1) transmit yellow (tcr1.0) esf yellow alarm gen. (00ff hex in the fdl) frame mode select (ccr2.7) transmit yellow (tcr1.0) 1 0 1 0 10 01 1 0 ds2152 transmit data flow figure 15.11 fps or ft bit insertion 1 0 fdl hdlc & boc controller hdlc/boc enable (tboc.6) tir function select (ccr4.0) tidr 1 0 rser in-band loop code generator per-channel code generation 10 ibcc tcd tcc1 to tcc3 tc1 to tc24 ccr3.1 (note#1) notes: 1. tclk should be tied to rclk and tsync should be tied to rfsync for data to be properly sourced from rser. 10 tcd2 ds0 insertion enable (tdc1.7) 1 0 tdc1.5 tcd1 4:0 tchblk ds0 monitor fdl mux 1 0 0 source mux hdlc engine tser & tdata tsig hardware signaling insertion 01 tcbr1/2/3 ccr4.1 ccr4.2
DS21352/ds21552 123 of 137 23. operating parameters absolute maximum ratings* voltage on any pin relative to ground ?1.0v to +6.0v operating temperature for DS21352l/ds21552l 0  c to 70  c operating temperature for DS21352ln/ds21552ln ?40  c to +85  c storage temperature ?55  c to +125  c soldering temperature 260  c for 10 seconds * this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. recommended dc operating conditions (0  c to 70  c for DS21352l/ds21552l; -40  c to +85  c for DS21352ln/ds21552ln) parameter symbol min typ max units notes logic 1 v ih 2.0 5.5 v logic 0 v il ?0.3 +0.8 v supply for DS21352 v dd 3.135 3.3 3.465 v 1 supply for ds21552 v dd 4.75 5 5.25 v 1 capacitance (t a =25  c) parameter symbol min typ max units notes input capacitance c in 5pf output capacitance c out 7pf dc characteristics (0  c to 70  c; v dd = 3.3v  5% for DS21352l; 0  c to 70  c; v dd = 5.0v  5% for ds21552l; -40  c to +85  c; v dd = 3.3v  5% for DS21352ln; -40  c to +85  c; v dd = 5.0v  5% for ds21552ln) parameter symbol min typ max units notes supply current @ 5v i dd 75 ma 2 supply current @ 3.3v i dd 75 ma 2 input leakage i il ?1.0 +1.0  a 3 output leakage i lo 1.0  a 4 output current (2.4v) i oh ?1.0 ma output current (0.4v) i ol +4.0 ma notes: 1. applies to rvdd, tvdd, and dvdd. 1. tclk = tclki = rclki = tsysclk = rsysclk = mclk = 1.544 mhz; outputs open circuited. 2. 0.0v < v in < v dd . 3. applied to int* when 3?stated.
DS21352/ds21552 124 of 137 24. ac timing parameters and diagrams 24.1 multiplexed bus ac characteristics ac characteristics ? multiplexed parallel port (mux = 1) [see figure 24-1 to figure 24-3] (0  c to 70  c; v dd = 3.3v  5% for DS21352l; 0  c to 70  c; v dd = 5.0v  5% for ds21552l; -40  c to +85  c; v dd = 3.3v  5% for DS21352ln; -40  c to +85  c; v dd = 5.0v  5% for ds21552ln) parameter symbol min typ max units notes cycle time t cyc 200 ns pulse width, ds low or rd* high pw el 100 ns pulse width, ds high or rd* low pw eh 100 ns input rise/fall times t r , t f 20 ns r/w* hold time t rwh 10 ns r/w* set up time before ds high t rws 50 ns cs* set up time before ds, wr* or rd* active t cs 20 ns cs* hold time t ch 0ns read data hold time t dhr 10 50 ns write data hold time t dhw 0ns muxed address valid to as or ale fall t asl 15 ns muxed address hold time t ahl 10 ns delay time ds, wr* or rd* to as or ale rise t asd 20 ns pulse width as or ale high pw ash 30 ns delay time, as or ale to ds, wr* or rd* t ased 10 ns output data delay time from ds or rd* t ddr 20 80 ns data set up time t dsw 50 ns
DS21352/ds21552 125 of 137 figure 24-1 intel bus read timing (bts=0 / mux = 1) figure 24-2 intel bus write timing (bts=0 / mux=1) ash pw t cyc t asd t asd pw pw eh el t t t t t t ahl ch cs asl ased cs* a d0-ad7 dhr t ddr ale rd* wr* ash pw t cyc t asd t asd pw pw eh el t t t t t t t ahl dsw dhw ch cs asl ased cs* a d0-ad7 rd* wr* ale
DS21352/ds21552 126 of 137 figure 24-3 motorola bus timing (bts = 1 / mux = 1) t asd ash pw t t asl ahl t cs t asl t t t dsw dhw t ch t t t ddr dhr rwh t ased pw eh t rws ahl pw el t cyc as ds a d0-ad7 (write) a d0-ad7 (read) r/w* cs*
DS21352/ds21552 127 of 137 24.2 non-multiplexed bus ac characteristics ac characteristics ? non-multiplexed parallel port (mux = 0) [see figure 24-4 to figure 24-7] (0  c to 70  c; v dd = 3.3v  5% for DS21352l; 0  c to 70  c; v dd = 5.0v  5% for ds21552l; -40  c to +85  c; v dd = 3.3v  5% for DS21352ln; -40  c to +85  c; v dd = 5.0v  5% for ds21552ln) parameter symbol min typ max units notes set up time for a0 to a7, valid to cs* active t1 0 ns set up time for cs* active to either rd*, wr*, or ds* active t2 0 ns delay time from either rd* or ds* active to data valid t3 75 ns hold time from either rd*, wr*, or ds* inactive to cs* inactive t4 0 ns hold time from cs* inactive to data bus 3?state t5 5 20 ns wait time from either wr* or ds* active to latch data t6 75 ns data set up time to either wr* or ds* inactive t7 10 ns data hold time from either wr* or ds* inactive t8 10 ns address hold from either wr* or ds* inactive t9 10 ns
DS21352/ds21552 128 of 137 figure 24-4 intel bus read timing (bts=0 / mux=0) figure 24-5 intel bus write timing (bts=0 / mux=0) address valid data valid a 0 to a7 d0 to d7 wr* cs* rd* 0ns min. 0ns min. 75ns max. 0ns min. 5ns min. / 20ns max. t1 t2 t3 t4 t5 address valid a 0 to a7 d0 to d7 rd* cs* wr* 0ns min. 0ns min. 75ns min. 0ns min. 10ns min. 10ns min. t1 t2 t6 t4 t7 t8
DS21352/ds21552 129 of 137 figure 24-6 motorola bus read timing (bts=1 / mux=0) figure 24-7 motorola bus write timing (bts=1 / mux=0) address valid data valid a 0 to a7 d0 to d7 r/w* cs* ds* 0ns min. 0ns min. 75ns max. 0ns min. 5ns min. / 20ns max. t1 t2 t3 t4 t5 address valid a 0 to a7 d0 to d7 r/w* cs* ds* 0ns min. 0ns min. 75ns min. 0ns min. 10ns min. 10ns min. t1 t2 t6 t4 t7 t8
DS21352/ds21552 130 of 137 24.3 receive side ac characteristics ac characteristics ? receive side [see figure 24-8 to figure 24-10] (0  c to 70  c; v dd = 3.3v  5% for DS21352l; 0  c to 70  c; v dd = 5.0v  5% for ds21552l; -40  c to +85  c; v dd = 3.3v  5% for DS21352ln; -40  c to +85  c; v dd = 5.0v  5% for ds21552ln) parameter symbol min typ max units notes rclko period t lp 648 ns rclko pulse width t lh t ll 200 200 324 324 ns ns 1 1 rclko pulse width t lh t ll 150 150 324 324 ns ns 2 2 rclki period t cp 648 ns rclki pulse width t ch t cl 75 75 ns ns rsysclk period t sp t sp t sp t sp 100 100 100 100 648 488 244 122 ns ns ns ns 3 4 5 6 rsysclk pulse width t sh t sl 50 50 ns ns rsync set up to rsysclk falling t su 20 t sh ?5 ns rsync pulse width t pw 50 ns rposi/rnegi set up to rclki falling t su 20 ns rposi/rnegi hold from rclki falling t hd 20 ns rsysclk/rclki rise and fall times t r , t f 25 ns delay rclko to rposo, rnego valid t dd 50 ns delay rclk to rser, rdata, rsig, rlink valid t d1 50 ns delay rclk to rchclk, rsync, rchblk, rfsync, rlclk t d2 50 ns delay rsysclk to rser, rsig valid t d3 50 ns delay rsysclk to rchclk, rchblk, rmsync, rsync, co t d4 50 ns ci set up to rsysclk rising t sc 20 ns ci pulse width t wc 50 ns notes: 1. jitter attenuator enabled in the receive path. 4. rsysclk = 2.048 mhz. 2. jitter attenuator disabled or enabled in the transmit path. 5. rsysclk = 4.096 mhz 3. rsysclk = 1.544 mhz. 6. rsysclk = 8.192 mhz figure24-8 receive side timing
DS21352/ds21552 131 of 137 t d1 1 t d2 rser / rdata / rsig rchclk rchblk rsync rlclk rlink t d1 notes: 1. rsync is in the output mode (rcr2.3 = 0). 2. shown is rlink/rlclk in the esf framing mode 3. no relationship between rchclk and rchblk and other signals is implied rclk rfsync / rmsync f bit 2 t d2 t d2 t d2 t d2
DS21352/ds21552 132 of 137 figure 24.9 receive side timing, elastic store enabled f t t r t d3 t d4 t d4 t d4 t t su hd rser / rsig rchclk rchblk 1 rsync 2 rsync notes: 1. rsync is in the output mode (rcr2.3 = 0) 2. rsync is in the input mode (rcr2.3 = 1) 3. f-bit when ccr1.3 = 0, msb of ts0 when ccr1.3 = 1 rsysclk sl t t sp sh t t d4 rmsync / co t sc ci t wc see note 3
DS21352/ds21552 133 of 137 figure 24-10 receive line interface timing t f t r rposi, rnegi rclki cl t t cp ch t t su t hd t dd rposo, rnego rclko ll t t lp lh t
DS21352/ds21552 134 of 137 24.4 transmit ac characteristics ac characteristics ? transmit side [see figure 24-11 to figure 24-13] (0  c to 70  c; v dd = 3.3v  5% for DS21352l; 0  c to 70  c; v dd = 5.0v  5% for ds21552l; -40  c to +85  c; v dd = 3.3v  5% for DS21352ln; -40  c to +85  c; v dd = 5.0v  5% for ds21552ln) parameter symbol min typ max units notes tclk period t cp 648 ns tclk pulse width t ch t cl 75 75 ns ns tclki period t lp 648 ns tclki pulse width t lh t ll 75 75 ns ns tsysclk period t sp t sp t sp t sp 100 100 100 100 648 488 244 122 ns ns ns ns 1 2 3 4 tsysclk pulse width t sh t sl 50 50 ns ns tsync or tssync set up to tclk or tsysclk falling t su 20 t ch ?5 or t sh ?5 ns tsync or tssync pulse width t pw 50 ns tser, tsig, tdata, tlink, tposi, tnegi set up to tclk, tsysclk, tclki falling t su 20 ns tser, tsig, tdata, tlink, tposi, tnegi hold from tclk, tsysclk, tclki falling t hd 20 ns tclk, tclki or tsysclk rise and fall times t r , t f 25 ns delay tclko to tposo, tnego valid t dd 50 ns delay tclk to teso valid t d1 50 ns delay tclk to tchblk, tchclk, tsync, tlclk t d2 50 ns delay tsysclk to tchclk, tchblk, co t d3 75 ns ci set up to tsysclk rising t sc 20 ns ci pulse width t wc 50 ns notes: 1. tsysclk = 1.544 mhz. 2. tsysclk = 2.048 mhz. 3. tsysclk = 4.096 mhz 4. tsysclk = 8.192 mhz
DS21352/ds21552 135 of 137 figure 24-11 transmit side timing t f t r 1 tclk tser / tsig / tdata tchclk t t cl t ch cp tsync tsync tlink tlclk tchblk t d2 t d2 t d2 t t t t t t hd su d2 su hd d1 t hd 2 notes: 1. tsync is in the output mode (tcr2.2 = 1). 2. tsync is in the input mode (tcr2.2 = 0). 3. tser is sampled on the falling edge of tclk when the transmit side elastic store is disabled. 4. tchclk and tchblk are synchronous with tclk when the transmit side elastic store is disabled. 5. tlink is only sampled during f-bit locations. 6. no relationship between tchclk and tchblk and the other signals is implied. 5 teso t su
DS21352/ds21552 136 of 137 figure 24-12 transmit side timing, elastic store enabled figure 24-13 transmit line interface timing t f t r tsysclk tser tchclk t t sl t sh sp tssync tchblk t d3 t d3 t t t su hd su t hd notes: 1. tser is only sampled on the falling edge of tsysclk when the transmit side elastic store is enabled. 2. tchclk and tchblk are synchronous with tsysclk when the transmit side elastic store is enabled. tclko tposo, tnego t dd t f t r tclki tposi, tnegi t t ll t lh lp t hd t su
DS21352/ds21552 137 of 137 25. mechanical description


▲Up To Search▲   

 
Price & Availability of DS21352

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X